Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • librsvg librsvg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 188
    • Issues 188
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • librsvglibrsvg
  • Merge requests
  • !161

Merged
Created Dec 06, 2018 by Jordan Petridis@alatiera🌱Developer

(391): Avoid undefined behavior casting opaque pointers to empty enums

  • Overview 26
  • Commits 1
  • Pipelines 2
  • Changes 3

Looks like enums had been the recommended way to do this kind of thing, in the rustbooks itself, but it can lead to UB and it was changed recently to reflect this.

The new recommendation is a repr(c) struct with a single private field.

Close #391 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: ub-enums