GNOME Bugzilla – Bug 727755
parser should use length parameter when validating utf-8
Last modified: 2014-04-24 11:46:11 UTC
I got some "JSON data must be UTF-8 encoded" when parsing some data (from a GByteArray), because the utf-8 validation assumes the data is \0-terminated, which isn't necessarily true.
Created attachment 273717 [details] [review] json-parser: use length parameter when validating utf-8
looks good; I thought I alredy did this, but it turned out that passing the length uncovered a bug in JsonParser's input stream handling which I didn't have time to investigate fully and fix. I've done that, now, and pushed the patch on top. Attachment 273717 [details] pushed as 13397eb - json-parser: use length parameter when validating utf-8
Thanks for the quick response / fix!