GNOME Bugzilla – Bug 775130
h264 parser: invalid input causes assert
Last modified: 2016-11-26 10:32:42 UTC
Created attachment 340789 [details] poc file The attached file will cause a call to an assert. This happens in the file gst/videoparsers/gsth264parse.c (line 1134 in current git). After a call to gst_h264_parser_identify_nalu_unchecked() a switch/case statement checks for return values GST_H264_PARSER_OK and GST_H264_PARSER_NO_NAL and for all other values calls g_assert_not_reached. However the function (file gst-libs/gst/codecparsers/gsth264parser.c) can also return GST_H264_PARSER_ERROR. Therefore this should be added to the switch/case statement and returned with a graceful error.
commit cb4ccecc97cbca784285bb1e735e0197ffd1eac3 Author: Sebastian Dröge <sebastian@centricular.com> Date: Sat Nov 26 12:16:18 2016 +0200 h265parse: Fix assertion when encountering an invalid NALU Error out properly instead. https://bugzilla.gnome.org/show_bug.cgi?id=775130 commit 47bf425cba1bfe056adbd630fa2858d053ddf379 Author: Sebastian Dröge <sebastian@centricular.com> Date: Sat Nov 26 12:15:50 2016 +0200 h264parse: Fix assertion when encountering an invalid NALU Error out properly instead. https://bugzilla.gnome.org/show_bug.cgi?id=775130
Created attachment 340791 [details] [review] h264parse: Fix assertion when encountering an invalid NALU Error out properly instead.
Created attachment 340792 [details] [review] h265parse: Fix assertion when encountering an invalid NALU Error out properly instead.