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.