GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Out of bounds access in getBreakpoint() · Issue #1098 · async-profiler/async-profiler

Out of bounds access in getBreakpoint() #1098

New issue
Copy link
New issue
Copy link
Closed
Closed
Out of bounds access in getBreakpoint()#1098
Copy link
Labels
bug

Description

@apangin
apangin
opened on Jan 4, 2025
Issue body actions

Describe the bug

The issue was found with a static analyzer:

        // Parse access type [:rwx]
        c = strrchr(buf, ':');
        if (c != NULL && c != name && c[-1] != ':') {
                         ^^^^^^^^^

c will never be equal to name; we should check c != buf instead.

Expected vs. actual behavior

No response

Reproduction Steps

No response

Additional Information/Context

No response

Async-profiler version

master

Environment details

No response

Activity

  1. apangin
    added
    bug
    on Jan 4, 2025
  2. apangin
    added a commit that references this issue on Jan 4, 2025

    #1098: Fixed wrong check in getBreakpoint()

    e98e76f
  3. apangin
    closed this as completedon Jan 4, 2025
  4. roy-soumadipta
    added a commit that references this issue on Jan 27, 2025

    async-profiler#1098: Fixed wrong check in getBreakpoint()

    7d66d05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.