gstreamer/gst-libs/gst/codecparsers
Vincent Penquerc'h c73a5e0c54 h264parser: fix stack smashing
Ensure that we do not trust the bitstream when filling a table
with a fixed max size.
Additionally, the code was not quite matching what the spec says:
- a value of 3 broke from the loop before adding an entry
- an unhandled value did not add an entry
The reference algorithm does these things differently (7.3.3.1
in ITU-T Rec. H.264 (05/2003)).

This plays (apparently correctly) the original repro file, with
no stack smashing.

Based on a patch and bug report by André Draszik <git@andred.net>
2015-01-14 11:39:55 +00:00
..
dboolhuff.AUTHORS codecparsers: vp8: add GStreamer native utilities. 2014-04-18 16:32:40 +02:00
dboolhuff.c codecparsers: vp8: add GStreamer native utilities. 2014-04-18 16:32:40 +02:00
dboolhuff.h codecparsers: vp8: add GStreamer native utilities. 2014-04-18 16:32:40 +02:00
dboolhuff.LICENSE codecparsers: vp8: add GStreamer native utilities. 2014-04-18 16:32:40 +02:00
dboolhuff.PATENTS codecparsers: vp8: add GStreamer native utilities. 2014-04-18 16:32:40 +02:00
gsth264parser.c h264parser: fix stack smashing 2015-01-14 11:39:55 +00:00
gsth264parser.h h264parser: fix GstH264ParserResult documentation typo 2014-11-10 23:37:37 +00:00
gsth265parser.c codecparsers: fix some compiler warnings 2014-11-25 23:05:15 +00:00
gsth265parser.h codecparsers: cosmetics: drop TAB characters. 2014-03-25 15:48:40 +01:00
gstmpeg4parser.c codecparsers: remove ignored increment of return 2014-10-29 10:37:38 +00:00
gstmpeg4parser.h codecparsers: add C++ guards for MPEG-4 and VP8 parsers. 2014-06-12 10:25:54 +02:00
gstmpegvideometa.c docs: add since markers to new codecparsers video meta API 2013-04-02 23:34:19 +01:00
gstmpegvideometa.h codecparsers: cosmetics: drop TAB characters. 2014-03-25 15:48:40 +01:00
gstmpegvideoparser.c mpegvideoparser: Also initialize debug category in parse_sequence_header 2013-12-04 17:55:05 -05:00
gstmpegvideoparser.h codecparsers: cosmetics: drop TAB characters. 2014-03-25 15:48:40 +01:00
gstvc1parser.c vc1parser: take care of endianness when parsing sequence-layer 2014-09-18 13:36:07 +03:00
gstvc1parser.h vc1parser: fix level values for simple/main profile 2014-10-20 12:40:54 +02:00
gstvp8parser.c codecparsers: add VP8 bitstream parser. 2014-04-18 16:32:40 +02:00
gstvp8parser.h codecparsers: add C++ guards for MPEG-4 and VP8 parsers. 2014-06-12 10:25:54 +02:00
gstvp8rangedecoder.c codecparsers: vp8: move up built-in range decoder private data. 2014-06-26 16:04:54 +02:00
gstvp8rangedecoder.h codecparsers: add VP8 bitstream parser. 2014-04-18 16:32:40 +02:00
Makefile.am codecparsers: vp8: rename dboolhuff symbols. 2014-04-18 16:32:40 +02:00
nalutils.c codecparsers: h264: add nal_reader_skip_long() helper. 2014-06-26 17:22:26 +02:00
nalutils.h codecparsers: fix some compiler warnings 2014-11-25 23:05:15 +00:00
parserutils.c Fix FSF address 2012-11-04 00:09:59 +00:00
parserutils.h Fix FSF address 2012-11-04 00:09:59 +00:00
vp8utils.c codecparsers: vp8: add GStreamer native utilities. 2014-04-18 16:32:40 +02:00
vp8utils.h codecparsers: add VP8 bitstream parser. 2014-04-18 16:32:40 +02:00