[Bug 778432] Crash on state chang to NULL during mp3_type_find_at_offset

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Feb 13 00:02:47 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=778432

Heekyoung Seo <heekyoung.seo at lge.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #345408|needs-work                  |none
             status|                            |
 Attachment #345408|0                           |1
        is obsolete|                            |
                 CC|                            |heekyoung.seo at lge.com

--- Comment #4 from Heekyoung Seo <heekyoung.seo at lge.com> ---
Created attachment 345593
  --> https://bugzilla.gnome.org/attachment.cgi?id=345593&action=edit
typefindfunctions: prevent unsigned int overflow

Does it look more clear if the condition is changed as below?

-      if (found > 0 && head_data == NULL &&
+      if (found != 0 && head_data == NULL &&

Assertion causes only when found == 0.

-- 
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