Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !5834

i#5833: Fix print_to_buffer full-buffer return error

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i5833-disas-len into master Jan 20, 2023
  • Overview 1
  • Commits 5
  • Pipelines 0
  • Changes 3

Fixes a bug where print_to_buffer() does not correctly handle d_r_vsnprintf()'s return value for the case where the max size is filled up exactly with no room for a null. This bug showed up in the exported disassemble_to_buffer().

Adds tests of these corner cases in disassemble_to_buffer() to api.ir.

Fixes #5833 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i5833-disas-len