GNOME Bugzilla – Bug 712805
subparse: crashes when loading a sami subtitle
Last modified: 2013-11-21 16:36:01 UTC
Sami subparse has a NULL pointer access bug. When trying to split html attributes in 'html_context_handle_element' function, the problem occurs if a character '=' is used as a attribute value or comments. So below tags will crash. <!-- ======= foo bar ======= --> <Sync Start="0"><P Class="FOO==="> Test
Thanks for the bug report. Are you working on a patch?
Created attachment 260428 [details] [review] avoid null pointer access This patch will fix null pointer access. I tested some subtitles, and there was no problem.
Thanks for the patch, pushed to master: commit 60e87090eb1f91e298f4e1005a6f6953b592709f Author: Tim-Philipp Müller <tim@centricular.com> Date: Thu Nov 21 16:34:25 2013 +0000 tests: add unit test for samiparser issue https://bugzilla.gnome.org/show_bug.cgi?id=712805 commit a81b2380cfcb3dc97eca08318b1b405e477ec8f1 Author: Jihyun Cho <jihyun.jo@gmail.com> Date: Thu Nov 21 22:04:46 2013 +0900 subparse: fix null pointer access in sami parser https://bugzilla.gnome.org/show_bug.cgi?id=712805 Will also cherry-pick this into 1.2