GNOME Bugzilla – Bug 639674
parse-launch: improve parsing resilience (for escapes at end of string)
Last modified: 2011-01-24 14:26:05 UTC
When the last character of a property value is a backslash the unescaping code reads one byte pass the end of the string. To reproduce it execute: python -c 'import gst;gst.parse_launch("filesrc location=x\\")'
Created attachment 178441 [details] [review] Fix for the bug report
Fixed it a bit differently, to make the problem/intention clearer: commit bc066cf2ca3132da350b7d6e5ee620e8120c1006 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Mon Jan 24 14:22:27 2011 +0000 tests: add unit test for read-beyond-end-of-string bug https://bugzilla.gnome.org/show_bug.cgi?id=639674 commit d709f569ba8a598d1c0b8d86963218112581cd33 Author: Miguel Angel Cabrera Moya <madmac2501@gmail.com> Date: Mon Jan 24 14:16:37 2011 +0000 parse-launch: don't read past end of string if last character is an escape char When the last character of a property value is a backslash the unescaping code reads one byte pass the end of the string. https://bugzilla.gnome.org/show_bug.cgi?id=639674