After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698457 - g_variant_get_data_as_bytes() always returns toplevel bytes for serialized variants
g_variant_get_data_as_bytes() always returns toplevel bytes for serialized va...
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gvariant
unspecified
Other All
: Normal normal
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-04-20 16:33 UTC by Lars Karlitski
Modified: 2013-04-20 23:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
g_variant_get_data_as_bytes: return a sub-bytes if necessary (2.18 KB, patch)
2013-04-20 16:33 UTC, Lars Karlitski
committed Details | Review

Description Lars Karlitski 2013-04-20 16:33:30 UTC
Calling g_variant_get_data_as_bytes on a child of an already-serialized variant
returns the data of the parent variant instead of that of the child.
Comment 1 Lars Karlitski 2013-04-20 16:33:31 UTC
Created attachment 242009 [details] [review]
g_variant_get_data_as_bytes: return a sub-bytes if necessary
Comment 2 Allison Karlitskaya (desrt) 2013-04-20 23:25:38 UTC
Attachment 242009 [details] pushed as ac1379e - g_variant_get_data_as_bytes: return a sub-bytes if necessary


This fixed a failure I was hitting when testing my GdkPixbuf serialize() implementation for GIcon.

Looks good, so pushed.

Thanks for the test!