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
  • Issues
  • #4036
Closed
Open
Issue created Jan 21, 2020 by John F.X. Galea@johnfxgaleaContributor

An empty drvector fails to extend its array when a value is set at index is zero

A bug arises when an empty vector is initialised and a value is then set at index 0. The following is a simple test case:

drvector_init(vector, 0, false, NULL);
drvector_set_entry(vector, 0, (void *) 777);

drvector attempts to increase the size of the array, but passes a size of 0 to dr_global_alloc, hence causing a failure.

<Application /home/john/main_dr/dynamorio/build/suite/tests/bin/simple_app (5479). Internal Error: DynamoRIO debug check failure: /home/john/main_dr/dynamorio/core/heap.c:4104 size > 0

Assignee
Assign to
Time tracking