Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #29537

verify intptr_t round-trip through void *

Round-trip of intptr_t through void * isn't explicitly guaranteed by C99. There are implementation-defined behaviors for integer to void *, and vice versa. Only a round-trip of void * through intptr_t is guaranteed, not vice versa. We seem to depend on being able to store an integer in a void * from time to time, e.g., to store integers in a smartlist.

We should run some automated tests to make sure this works as we expect, at least until we stop needing this behavior. (See also #23714 (moved).)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking