[Bug 707933] matroskademux: Wrong UTF8 detection causes wrong detection of subtitle encoding

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 19 14:26:25 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=707933
  GStreamer | gst-plugins-good | 1.0.10

--- Comment #5 from Seán de Búrca <leftmostcat at gmail.com> 2013-09-19 21:26:21 UTC ---
If we can't guarantee that it's null-terminated, should it then be something
like the following?

sub_size = map.data[map.size - 1] != '\0' ? map.size : map.size - 1;

Then just use sub_size instead of map.size for validation.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list