Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pygobject pygobject
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 303
    • Issues 303
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • pygobjectpygobject
  • Issues
  • #14
Closed
Open
Issue created Apr 02, 2011 by Bugzilla@bugzilla-migration💬Reporter

A GArray of enums may not be returned correctly

Submitted by Mike Gorse

Link to original bug (#646581)

Description

When _pygi_argument_to_object sees an array, it fetches the size of an item and then calls memcpy to copy an item from the array into a GIArgument. It then recurses, and, if the subtype is an enum, it assumes that the GIArgument holds a long. This can cause problems on 64-bit systems for instance if the array contained ints rather than longs, since only the first four bytes of the GIArgument data were ever initialized.

Edited Jan 19, 2021 by Emmanuele Bassi
Assignee
Assign to
Time tracking