[Bug 750567] rtpvp8depay: FTBFS because of access beyond end of array compiler warning
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Jun 8 12:24:49 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=750567
Luis de Bethencourt <luis at debethencourt.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #304804|none |committed
status| |
--- Comment #6 from Luis de Bethencourt <luis at debethencourt.com> ---
Review of attachment 304804:
--> (https://bugzilla.gnome.org/review?bug=750567&attachment=304804)
Thanks Chris! Merged :)
Notice the commit message format for future patch submissions.
commit e29f231e5d032fea63a55ba0258a4ab3e2b13f67
Author: Chris Clayton <chris2553 at googlemail.com>
Date: Mon Jun 8 19:42:30 2015 +0100
rtpvp8depay: potential access beyond end of array
Compiling (with gcc-4.9-20150603) produces an error because of an access
beyond
the end of an array. This patch fixes the error by initializing the loop
control/array index variable (i) to 1 and returning i - 1 when a match is
found.
Also, because the values stored in the array increase in value as the index
increases, the >= test unnecessary, so it is removed.
--
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