GNOME Bugzilla – Bug 622561
valagirparser bad assumption before split call
Last modified: 2010-11-24 12:42:27 UTC
Problem: A line like the following in the .metadata file causes a GLib:Critical: 'blah' I.e. A line with a single token with no whitespace. Cause: line split done on space but following code doesn't check that 2 or more tokens are returned. Fix: Modify parse_metadata method to skip over lines that don't have a second token. Patch attached.
Created attachment 164474 [details] [review] Fix GLib:Criticals on metadata lines with one token
For reference, this fix has been included in the patch provided in: https://bugzilla.gnome.org/show_bug.cgi?id=627033
Commit a72acba1ef94af6d48e437fb8a3650fe521e0c2a From: Luca Bruno <lucabru@src.gnome.org> Date: Sun, 29 Aug 2010 11:02:25 +0000 girparser: Replace parse_metadata with MetadataParser Thanks for the report and for writing the patch. Metadata parser has completely changed. Closing the bug as obsolete. Please feel free to open new bugs against the new metadata parser.