summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-release.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2018-01-24 19:33:41 +0000
committerRichard Hughes <richard@hughsie.com>2018-01-24 20:05:08 +0000
commit2dd6f02296f82cba60c1523d361d8250d9f43539 (patch)
treec95854342adc5011d7bc86123bf574e8cd6b1f70 /libappstream-glib/as-release.c
parent628474b5b3a82e779447e296c3e019fe913800ff (diff)
downloadappstream-glib-2dd6f02296f82cba60c1523d361d8250d9f43539.tar.gz
Fix an invalid read when using as_app_parse_data() from Python
Using GObject Introspection we were creating an object using GLib.Bytes.new(buf) where buf was a python str object. This created a GBytes object with no trailing NUL char but we were expecting a NUL-terminated string when both doing fnmatch() and also processing the XML. Support this by guarding fnmatch and also by using the string length when using the GMarkupParseContext.
Diffstat (limited to 'libappstream-glib/as-release.c')
0 files changed, 0 insertions, 0 deletions