Files
glib/glib/tests
Philip Withnall 3e313438f1 gvariant-parser: Reject deeply-nested typedecls in text form variants
Return `G_VARIANT_PARSE_ERROR_RECURSION` from `g_variant_parse()` if a
typedecl is found within a text-form variant which would cause any part
of the variant to exceed the maximum allowed recursion/nesting depth.

This fixes an oversight when `G_VARIANT_MAX_RECURSION_DEPTH` was
implemented, which allowed typedecls to effectively multiply the size of
an array if `g_variant_parse()` was parsing a text-form variant without
a top-level concrete type specified.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #2782
oss-fuzz#49462
2022-10-18 14:52:32 +01:00
..
2022-07-05 11:06:49 +00:00
2022-07-25 22:30:22 +01:00
2022-09-15 03:43:04 +02:00
2018-12-17 16:19:31 -05:00
2011-02-13 23:49:19 -05:00
2013-11-23 00:39:07 -05:00
2022-07-25 22:30:22 +01:00
2011-01-27 23:07:53 -05:00
2022-04-14 15:38:47 +04:00
2021-05-13 22:16:27 +01:00
2022-10-14 16:24:41 +01:00
2022-05-19 12:39:33 -04:00
2022-04-28 11:22:53 +01:00