Files
glib/glib/tests
Philip Withnall 0f2a6c61c9 gvariant: Realign data on construction if it’s not properly aligned
Otherwise the GVariant would later fail internal alignment checks,
aborting the program.

If unaligned data is provided to (for example)
g_variant_new_from_data(), it will copy the data into a new aligned
allocation. This is slow, but better than crashing. If callers want
better performance, they should provide aligned data in their call, and
it will not be copied or reallocated.

Includes a unit test.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://gitlab.gnome.org/GNOME/glib/issues/1342
2018-11-06 11:50:20 +00:00
..
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2015-06-29 08:20:26 -07:00
2018-07-09 10:11:42 +01:00
2010-07-10 23:56:45 -04:00
2017-05-24 11:58:19 +02:00
2017-02-20 12:40:26 +01:00
2018-04-26 15:19:17 +01:00
2014-10-02 14:41:01 -04:00
2010-07-05 23:43:47 -04:00
2012-04-08 10:24:52 -04:00
2011-02-13 23:49:19 -05:00
2011-10-08 19:02:06 -04:00
2017-05-24 11:58:19 +02:00
2013-11-23 00:39:07 -05:00
2010-07-07 22:03:02 -04:00
2018-11-01 19:13:21 +00:00
2017-05-24 11:58:19 +02:00
2011-10-13 01:00:57 -04:00
2017-05-24 11:58:19 +02:00
2011-01-27 23:07:53 -05:00
2017-05-24 11:58:19 +02:00
2011-06-03 23:38:46 -04:00
2018-06-11 14:59:39 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2015-09-12 11:13:45 -04:00
2017-05-24 11:58:19 +02:00
2015-08-31 13:59:48 -04:00
2018-08-07 12:20:37 +01:00
2018-08-07 12:20:37 +01:00
2017-05-24 11:58:19 +02:00
2018-07-18 14:26:47 +02:00
2017-05-24 11:58:19 +02:00