FFmpeg/libavformat
Michael Niedermayer b8129b1a7a avformat/mpegts: Check desc_len / get8() return code
Fixes out of array read
Fixes: signal_sigsegv_844d59_10_signal_sigsegv_a17bb7_366_mpegts_mpeg2video_mp2_dvbsub_topfield.rec

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c3d7f00ee3)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-11-28 20:27:41 +01:00
..
4xm.c 4xmdemux: Check chunk size 2012-05-11 22:38:28 +02:00
adtsenc.c Add libavcodec/internal.h include to avoid warning: implicit declaration of 2009-02-13 23:02:05 +00:00
aiff.c use new metadata API in aiff demuxer 2009-02-02 23:43:12 +00:00
allformats.c add raw demuxer for Chinese AVS elementary streams 2009-02-21 10:34:29 +00:00
amr.c Change semantic of CONFIG_*, HAVE_* and ARCH_*. 2009-01-13 23:44:16 +00:00
apc.c Bump Major version, this commit is almost just renaming bits_per_sample to 2008-09-08 14:24:59 +00:00
ape.c ape demuxer: fix segfault on memory allocation failure. 2011-11-03 03:27:24 +01:00
asf.c Add some basic metadata conversion tables for matroska and asf. 2009-03-01 00:12:08 +00:00
asf.h fix 'seektest' again 2010-03-02 16:03:06 +00:00
asfcrypt.c Add and use a public API for RC4 and DES, analogous to the AES API. 2009-02-03 14:20:55 +00:00
asfcrypt.h Globally rename the header inclusion guard names. 2008-08-31 07:39:47 +00:00
asfdec.c fix 'seektest' again 2010-03-02 16:03:06 +00:00
asfenc.c fix 'seektest' again 2010-03-02 16:03:06 +00:00
assdec.c Silence "assdec.c:146: warning: passing argument 4 of ‘qsort’ from incompatible pointer type" 2009-02-14 15:44:46 +00:00
assenc.c ASS/SSA muxer. 2008-09-26 19:42:21 +00:00
au.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
audiointerleave.c check fifo size and realloc if needed 2009-02-18 04:42:31 +00:00
audiointerleave.h rename ff_audio_interleave to ff_audio_rechunk_interleave 2009-02-09 21:34:20 +00:00
avc.c support h264 extradata with 0x000001 startcode 2009-01-16 01:26:52 +00:00
avc.h 10l, fix prototype 2009-01-16 01:20:31 +00:00
avformat.h Make arguments of av_set_pts_info() unsigned. 2010-02-09 18:10:07 +00:00
avi.h Globally rename the header inclusion guard names. 2008-08-31 07:39:47 +00:00
avidec.c avidec: return 0, not packet size from read_packet(). 2013-02-10 18:01:15 +01:00
avienc.c Add AVFMT_VARIABLE_FPS to specify which muxers do not need duplicated frames. 2009-02-24 15:04:18 +00:00
avio.c Rename register_protocol() to av_register_protocol() and deprecate 2009-02-15 14:25:23 +00:00
avio.h Mark as "internal but installed" the avio.h file. 2009-02-26 22:34:18 +00:00
aviobuf.c unbreak compilation and finish backport r24280 by mstorsjo 2010-10-03 14:50:04 +00:00
avisynth.c Restore mistakenly removed period after "DivX, Inc". 2009-01-19 17:01:22 +00:00
avs.c Check for out of bound writes in the avs demuxer. 2011-11-06 19:49:12 +01:00
bethsoftvid.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
bfi.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
c93.c avoid POSIX reserved _t suffix 2008-12-11 22:34:14 +00:00
crcenc.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
cutils.c Do not misuse unsigned long to store pointers. 2009-02-04 05:56:39 +00:00
daud.c Change semantic of CONFIG_*, HAVE_* and ARCH_*. 2009-01-13 23:44:16 +00:00
dsicin.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
dv.c dv: Fix small stack overread related to CVE-2011-3929 and CVE-2011-3936. 2012-04-21 15:41:57 +02:00
dv.h cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
dvenc.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
dxa.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
eacdata.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
electronicarts.c ea: check chunk_size for validity. 2012-06-03 19:35:13 +02:00
ffm.h cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
ffmdec.c return error if read failed 2009-02-12 02:17:16 +00:00
ffmenc.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
file.c Change semantic of CONFIG_*, HAVE_* and ARCH_*. 2009-01-13 23:44:16 +00:00
flacdec.c cosmetics: indentation 2009-02-28 17:31:25 +00:00
flacenc.c Share the function to write a raw FLAC header and use it in the Matroska 2009-02-26 02:41:53 +00:00
flacenc.h Share the function to write a raw FLAC header and use it in the Matroska 2009-02-26 02:41:53 +00:00
flic.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
flv.h Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
flvdec.c revert r16717, r16718, r16719, EAGAIN handling, this causes FFserver to hang 2009-03-02 20:32:24 +00:00
flvenc.c Splits the totalbitrate in a videodatarate and audiodatarate part. 2009-02-02 16:10:46 +00:00
framecrcenc.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
framehook.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
framehook.h Delete unnecessary 'extern' keywords. 2008-12-03 15:23:30 +00:00
gif.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
gopher.c Gopher protocol, patch by Toshimitsu Kimura, lovesyao gmail com 2009-02-11 16:28:46 +00:00
gxf.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
gxf.h Avoid _t in gxf enum type names 2008-12-13 21:58:17 +00:00
gxfenc.c use correct field number for video according to specs, patch by Thierry Foucu, tfoucu at gmail dot com 2009-02-13 21:36:36 +00:00
http.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
id3v2.c Fix probing of files with ID3v2 tags. Discussed at 2009-01-19 21:54:06 +00:00
id3v2.h Fix probing of files with ID3v2 tags. Discussed at 2009-01-19 21:54:06 +00:00
idcin.c Use more descriptive format long_names. 2009-02-12 17:26:06 +00:00
idroq.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
iff.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
img2.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
internal.h remove now useless av_set_program_name() function 2009-02-10 00:27:42 +00:00
ipmovie.c Simplify ipmovie.c pts calculation by using an appropriate time_base. 2009-02-27 10:07:12 +00:00
isom.c return -1 for errors in ff_mov_iso639_to_lang() to allow for error checking 2009-02-26 13:11:18 +00:00
isom.h 'code' is used to index a table so make it unsigned 2009-01-21 22:32:17 +00:00
iss.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
libavformat.v backport symbol versioning patch 2010-02-01 16:00:09 +00:00
libnut.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
lmlm4.c Fix build: Add intreadwrite.h and bswap.h #includes where necessary. 2009-01-11 22:19:48 +00:00
Makefile Separate the raw FLAC demuxer from raw.c and put in a new file, 2009-02-28 17:24:46 +00:00
matroska.c Add some basic metadata conversion tables for matroska and asf. 2009-03-01 00:12:08 +00:00
matroska.h Add some basic metadata conversion tables for matroska and asf. 2009-03-01 00:12:08 +00:00
matroskadec.c matroska: Fix use after free 2014-03-13 00:39:12 +01:00
matroskaenc.c Share the function to write a raw FLAC header and use it in the Matroska 2009-02-26 02:41:53 +00:00
metadata.c simplify metadata conversion and fixes gcc-2.95 at the same time 2009-03-01 14:29:30 +00:00
metadata.h add a metadata conversion API 2009-02-28 23:34:16 +00:00
metadata_compat.c don't trigger metadata compatibility code when user app already set metadata 2009-02-26 13:00:13 +00:00
mm.c mmdemux: dont set pkt->size to an invalid value. 2012-05-11 22:39:37 +02:00
mmf.c Use more descriptive format long_names. 2009-02-12 17:26:06 +00:00
mov.c check stream existence before assignment, fix #1222 2010-02-09 18:44:49 +00:00
movenc.c Rename movenc.c MOVContext to MOVMuxContext, since MOVContext is already used 2009-02-28 16:02:29 +00:00
mp3.c id3v2: fix skipping extended header in id3v2.4 2012-04-01 19:49:37 +02:00
mpc.c Fix probing of files with ID3v2 tags. Discussed at 2009-01-19 21:54:06 +00:00
mpc8.c Bump Major version, this commit is almost just renaming bits_per_sample to 2008-09-08 14:24:59 +00:00
mpeg.c Allow demuxing of audio substreams stored as 0x06 type. 2009-02-11 11:09:36 +00:00
mpeg.h cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
mpegenc.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
mpegts.c avformat/mpegts: Check desc_len / get8() return code 2014-11-28 20:27:41 +01:00
mpegts.h cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
mpegtsenc.c use new metadata API in mpegts muxer 2009-02-18 00:00:38 +00:00
mpjpeg.c cosmetics: format long_name spelling fixes 2009-02-12 17:24:17 +00:00
msnwc_tcp.c Make long_names in lavf/lavdev optional depending on CONFIG_SMALL. 2008-06-03 16:20:54 +00:00
mtv.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
mvi.c Bump Major version, this commit is almost just renaming bits_per_sample to 2008-09-08 14:24:59 +00:00
mxf.c reuse MXFCodecUL for data def and simplify 2009-02-08 05:12:30 +00:00
mxf.h reuse MXFCodecUL for data def and simplify 2009-02-08 05:12:30 +00:00
mxfdec.c reuse MXFCodecUL for data def and simplify 2009-02-08 05:12:30 +00:00
mxfenc.c fix index edit rate, inverse num and den 2009-02-25 08:09:13 +00:00
ncdec.c 10l: fix compiler warning: 2009-02-08 21:42:06 +00:00
network.h Fix undefined preprocessor directives warnings during 'make checkheaders'. 2009-01-24 14:52:46 +00:00
nsvdec.c nsvdec: Propagate errors 2012-04-21 15:38:44 +02:00
nut.c remove _t for POSIX compatibility. 2008-12-11 19:06:24 +00:00
nut.h Remove misleading comment, _t is POSIX-reserved namespace. 2008-12-13 16:08:31 +00:00
nutdec.c use new metadata API in nut demuxer 2009-02-27 23:10:34 +00:00
nutenc.c use new metadata API in nut muxer 2009-02-27 23:12:14 +00:00
nuv.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
oggdec.c Merge remote-tracking branch 'qatar/release/0.5' into release/0.5 2013-02-11 12:29:32 +01:00
oggdec.h Delete unnecessary 'extern' keywords. 2008-12-03 15:23:30 +00:00
oggenc.c Use a shared function to validate FLAC extradata. 2009-02-26 02:29:24 +00:00
oggparseflac.c use function and definitions from libavcodec/flac.h in oggparseflac.c 2009-01-25 01:21:10 +00:00
oggparseogm.c OGG: untypedef demuxer structs 2008-11-06 01:50:56 +00:00
oggparsespeex.c OGG: untypedef demuxer structs 2008-11-06 01:50:56 +00:00
oggparsetheora.c OGG: correct PTS with old theora streams 2008-11-06 01:57:17 +00:00
oggparsevorbis.c Fix possible buffer over-read in vorbis_comment, fix it double to be sure. 2010-02-09 18:51:11 +00:00
oma.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
options.c deprecate old metadata API 2009-03-01 16:35:25 +00:00
os_support.c Change semantic of CONFIG_*, HAVE_* and ARCH_*. 2009-01-13 23:44:16 +00:00
os_support.h Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
psxstr.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
pva.c Make long_names in lavf/lavdev optional depending on CONFIG_SMALL. 2008-06-03 16:20:54 +00:00
qtpalette.h Globally rename the header inclusion guard names. 2008-08-31 07:39:47 +00:00
r3d.c use new metadata API in r3d demuxer 2009-03-01 15:28:56 +00:00
raw.c Change the timebase of the raw demuxer to one that can represent the ts of fields. 2009-03-01 03:48:35 +00:00
raw.h Separate the raw FLAC demuxer from raw.c and put in a new file, 2009-02-28 17:24:46 +00:00
rdt.c Don't (ab)use PKT_FLAG_* in RTP code, since the two have virtually nothing 2009-02-26 14:23:05 +00:00
rdt.h Split rtp.h in rtp.h, rtpdec.h, and rtpenc.h 2009-02-06 10:35:52 +00:00
riff.c Fix raw rgb/bgr vertical flip in avi based on info from http://www.fourcc.org/fccbihgt.php. 2009-02-21 15:32:56 +00:00
riff.h Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
rl2.c cosmetics: format long_name spelling fixes 2009-02-12 17:24:17 +00:00
rm.c use new metadata API in rm (de)muxer 2009-02-17 21:40:38 +00:00
rm.h use new metadata API in rm (de)muxer 2009-02-17 21:40:38 +00:00
rmdec.c Reject audio tracks with invalid interleaver parameters in RM demuxer. 2011-11-06 18:32:11 +01:00
rmenc.c use new metadata API in rm (de)muxer 2009-02-17 21:40:38 +00:00
rpl.c cosmetics: vertical alignment 2009-02-26 22:39:53 +00:00
rtp.c Remame rtp_get_codec_info() to ff_rtp_get_codec_info(), as it is not 2009-02-17 08:12:51 +00:00
rtp.h Document ff_rtp_codec_id() 2009-02-28 19:34:50 +00:00
rtp_aac.c Merge rtp_aac.h and rtp_mpv.h in rtpenc.h 2009-02-06 15:30:41 +00:00
rtp_h264.c Split rtp.h in rtp.h, rtpdec.h, and rtpenc.h 2009-02-06 10:35:52 +00:00
rtp_h264.h Split rtp.h in rtp.h, rtpdec.h, and rtpenc.h 2009-02-06 10:35:52 +00:00
rtp_mpv.c Split rtp.h in rtp.h, rtpdec.h, and rtpenc.h 2009-02-06 10:35:52 +00:00
rtpdec.c Implement marker bit, which is used for several RTP payloads currently 2009-02-26 14:24:50 +00:00
rtpdec.h Implement marker bit, which is used for several RTP payloads currently 2009-02-26 14:24:50 +00:00
rtpenc.c Rename rtp_get_payload_type() to ff_rtp_get_payload_type(), as it is not 2009-02-16 09:36:21 +00:00
rtpenc.h Do not use RTP_MAX_PACKET_LENGTH in the RTP muxer 2009-02-06 20:41:15 +00:00
rtpenc_h264.c Split rtp.h in rtp.h, rtpdec.h, and rtpenc.h 2009-02-06 10:35:52 +00:00
rtpproto.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
rtsp.c Rename RTSPHeader to RTSPMessageHeader to reflect more clearly what the 2009-02-21 22:26:44 +00:00
rtsp.h Document rtsp.h, see "[PATCH] document rtsp.h" thread. 2009-02-26 14:15:41 +00:00
rtspcodes.h Globally rename the header inclusion guard names. 2008-08-31 07:39:47 +00:00
sdp.c Rename rtp_get_payload_type() to ff_rtp_get_payload_type(), as it is not 2009-02-16 09:36:21 +00:00
segafilm.c segafilm: Fix potential division by 0 on corrupted segafilm streams in the demuxer. 2011-11-03 03:52:55 +01:00
sierravmd.c Add a context to av_log() call. 2009-02-16 14:45:05 +00:00
siff.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
smacker.c Fixed segfault on corrupted smacker streams in the demuxer. 2011-11-03 03:33:41 +01:00
sol.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
swf.h cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
swfdec.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
swfenc.c Fix muxing mjpeg in swf. 2012-09-13 09:27:14 +02:00
tcp.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
thp.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
tiertexseq.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
tta.c remove ff_get_fourcc() and use AV_RL32() instead 2009-01-17 12:21:01 +00:00
txd.c Use more descriptive format long_names. 2009-02-12 17:26:06 +00:00
udp.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
utils.c lavf: avoid integer overflow in ff_compute_frame_duration() 2013-02-10 18:01:15 +01:00
vc1test.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
vc1testenc.c Remove unused variable. 2008-08-13 18:32:16 +00:00
voc.c voc: add ff_ prefix to some global const data 2008-08-24 14:12:03 +00:00
voc.h avoid POSIX reserved _t suffix 2008-12-11 22:34:14 +00:00
vocdec.c Fix build: Add intreadwrite.h and bswap.h #includes where necessary. 2009-01-11 22:19:48 +00:00
vocenc.c avoid POSIX reserved _t suffix 2008-12-11 22:34:14 +00:00
wav.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
wc3movie.c use new metadata API in wc3 demuxer 2009-02-26 22:35:26 +00:00
westwood.c vqa: fix double free on corrupted streams 2011-11-06 19:49:12 +01:00
wv.c cosmetics: Remove pointless period after copyright statement non-sentences. 2009-01-19 15:46:40 +00:00
xa.c Use full internal pathname in doxygen @file directives. 2009-02-01 02:00:19 +00:00
yuv4mpeg.c yuv4mpeg: reject unsupported codecs 2013-02-10 18:01:15 +01:00