Files
glib/glib/tests
Philip Withnall c927c59a84 gvariant-parser: Fix error handling when type coalescing fails
When parsing GVariant text format strings, we do a limited form of type
inference. The algorithm for type inference for nested array child types
is not complete, however (and making it complete, at least with a naive
implementation, would make it O(N^2), which is not worth it) and so some
text format arrays were triggering an assertion failure in the error
handling code.

Fix that by making the error handling code a little more relaxed, in the
knowledge that our type inference algorithm is not complete. See the
comment added to the code.

This includes a test case, provided by oss-fuzz.

oss-fuzz#11578

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-02-05 15:50:15 +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-12-18 12:24:17 +01: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
2018-12-17 16:19:31 -05:00
2018-12-28 15:30:28 +01: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
2018-12-21 13:22:55 +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
2017-05-24 11:58:19 +02:00
2018-12-22 14:36:56 +05:30
2018-06-11 14:59:39 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2018-12-17 17:16:03 +00:00
2015-09-12 11:13:45 -04:00
2017-05-24 11:58:19 +02:00
2018-12-17 17:16:03 +00:00
2015-08-31 13:59:48 -04:00
2018-08-07 12:20:37 +01:00
2018-11-27 10:40:35 +00: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