ffmpeg/libavformat
Andreas Cadhalpun 89eb398c7f icodec: correctly check avio_read return value
It can read less than the requested amount, in which case buf contains
uninitialized data, causing problems like segmentation faults later on.

Also make sure that image->size is positive, so that it can't match a
negative error code.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-11-10 22:02:49 +01:00
..
tests FATE: Add test for muxing discontinuous MP4 fragments with large timestamps 2016-10-19 13:25:21 +02:00
.gitignore
3dostr.c
4xm.c
a64.c
aacdec.c lavf/aacdec: Do not autodetect a single frame inside the file. 2016-09-24 18:33:55 +02:00
aadec.c
ac3dec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c adxdec: validate sample_rate 2016-11-07 00:51:49 +01:00
aea.c
afc.c
aiff.h lavf/aiffdec: Support QDMC demuxing. 2016-07-03 04:37:48 +02:00
aiffdec.c aiff: check block_align in aiff_read_packet 2016-10-21 19:40:59 +02:00
aiffenc.c lavf/aiffenc: Write extradata also for qcelp. 2016-10-11 09:52:34 +02:00
aixdec.c
allformats.c avformat: Add fifo pseudo-muxer 2016-08-22 22:03:37 +02:00
amr.c
anm.c
apc.c
ape.c
apetag.c
apetag.h
apngdec.c apngdec: use side data to pass extradata to the decoder 2016-11-01 18:49:28 +01:00
apngenc.c apng: use side data to pass extradata to muxer 2016-10-28 01:53:52 +02:00
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
asfdec_o.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
asfenc.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c astdec: fix division by zero 2016-10-17 20:41:26 +02:00
astenc.c
async.c
au.c
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h Revert "img2 encoder: allow %t in filename, based on patch from Yuval Adam" 2016-11-01 23:03:24 +01:00
avformatres.rc
avi.h
avidec.c lavf/avidec: Be more verbose when ignoring very large tag size. 2016-10-18 15:01:50 +02:00
avienc.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
avio_internal.h avformat/avio: add a crc callback function for CRC-32 IEEE-LE 2016-08-04 16:25:32 -03:00
avio.c
avio.h
aviobuf.c lavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API 2016-10-03 23:28:48 +02:00
avisynth.c avformat/avisynth.c: Use new safe dlopen code. 2016-11-05 18:08:53 +11:00
avlanguage.c avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
avlanguage.h avformat/avlanguage: make av_convert_lang_to() internal 2016-07-19 21:43:14 -03:00
avr.c
avs.c
bethsoftvid.c
bfi.c bfi: validate sample_rate 2016-11-07 00:51:49 +01:00
bink.c lavf/bink.c: fix warning due to misleading indentation 2016-10-03 15:42:27 +01:00
bintext.c
bit.c
bluray.c
bmv.c
boadec.c
brstm.c
c93.c
cache.c
caf.c
caf.h
cafdec.c
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c cosmetics: fix some misspelled words 2016-07-17 13:10:27 -03:00
concat.c
concatdec.c avformat/concatdec: don't call open_file when seek position within a file 2016-09-28 20:31:22 +02:00
crcenc.c
crypto.c avformat/crypto: add seeking support on read 2016-08-30 17:14:28 +02:00
cutils.c
dashenc.c lavf/movenc+dashenc: add automatic bitstream filtering 2016-10-24 03:53:23 -05:00
data_uri.c
dauddec.c
daudenc.c
dcstr.c dcstr: fix division by zero 2016-10-21 19:41:09 +02:00
dfa.c
diracdec.c
dnxhddec.c avcodec/dnxhddata: move avpriv_dnxhd_parse_header_prefix to a header 2016-07-25 12:19:39 -03:00
dsfdec.c
dsicin.c
dss.c
dtsdec.c
dtshddec.c
dump.c Merge commit 'e45a638f50cc1dbeb87b9792e68f57e77fc0c3b5' 2016-06-26 14:13:36 +02:00
dv.c
dv.h
dvbsub.c
dvbtxt.c
dvenc.c Merge commit 'b7f98659f21dce438c33b512e25fd64b8d07c347' 2016-06-29 11:16:01 +02:00
dxa.c
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c ffmdec: validate sample_rate 2016-11-07 00:51:49 +01:00
ffmenc.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo.c avformat: Add fifo pseudo-muxer 2016-08-22 22:03:37 +02:00
file_open.c
file.c
filmstripdec.c
filmstripenc.c
flac_picture.c
flac_picture.h
flacdec.c
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c avformat/flvdec: Fix regression loosing streams 2016-10-28 12:31:01 +02:00
flvenc.c avformat/flvenc: add add_keyframe_index option 2016-11-10 10:30:48 +08:00
format.c avformat/format: Fix registering a format more than once and related races 2016-06-25 20:09:10 +02:00
framecrcenc.c
framehash.c avformat/framehash: also print channel layout as a string 2016-11-05 22:42:22 -03:00
frmdec.c
fsb.c
ftp.c
g722.c
g723_1.c
g729dec.c
genh.c
gif.c
gifdec.c
golomb_tab.c
gopher.c
gsmdec.c
gxf.c
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hashenc.c
hdsenc.c
hevc.c
hevc.h
hevcdec.c
hls.c hls: fix leaking avio_opts on hls_read_header error 2016-11-07 19:44:41 +01:00
hlsenc.c Revert "img2 encoder: allow %t in filename, based on patch from Yuval Adam" 2016-11-01 23:03:24 +01:00
hlsproto.c
hnm.c
http.c avformat/http: Fix #ifdef FF_API_HTTP_USER_AGENT 2016-09-17 20:14:10 +02:00
http.h
httpauth.c lavf/httpauth: Do case-insensitive http header checks. 2016-09-03 13:56:40 +02:00
httpauth.h
icecast.c
icodec.c icodec: correctly check avio_read return value 2016-11-10 22:02:49 +01:00
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat/id3v2: fix memleak with empty strings 2016-08-11 14:10:19 +02:00
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c lavf/img2: Remove ffv1-img. 2016-07-15 10:25:02 +02:00
img2.h
img2dec.c lavf/img2dec: Skip DQT segment when auto-detecting jpg. 2016-09-03 13:38:16 +02:00
img2enc.c Revert "img2 encoder: allow %t in filename, based on patch from Yuval Adam" 2016-11-01 23:03:24 +01:00
ingenientdec.c
internal.h lavf/mux: add avformat_init_output 2016-10-24 03:53:21 -05:00
ipmovie.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c mpeg4audio: validate sample_rate 2016-11-07 00:51:49 +01:00
isom.h lavf/mov.c: Use the first sidx for tracks without sidx. 2016-11-03 19:03:22 +01:00
iss.c
iv8.c
ivfdec.c
ivfenc.c ivfenc: Add VPX codec tags. 2016-09-10 16:40:47 -07:00
jacosubdec.c
jacosubenc.c
jvdec.c
latmenc.c
libavformat.v Merge commit '535a742c2695a9e0c586b50d7fa76e318232ff24' 2016-06-27 17:56:47 +02:00
libgme.c
libmodplug.c
libnut.c
libopenmpt.c libopenmpt: Add "date" to metadata. 2016-07-21 02:47:35 +01:00
librtmp.c librtmp: Avoid an infiniloop setting connection arguments 2016-07-26 12:05:29 -07:00
libsmbclient.c
libssh.c
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c
m4vdec.c
Makefile avformat/avisynth.c: Use new safe dlopen code. 2016-11-05 18:08:53 +11:00
matroska.c
matroska.h avformat/matroskadec: support parsing Chroma Location elements 2016-10-18 20:39:07 -03:00
matroskadec.c matroskadec: fix NULL pointer dereference in webm_dash_manifest_read_header 2016-11-08 20:17:31 +01:00
matroskaenc.c avformat/matroskaenc: use display aspect ratio for DisplayWidth and DisplayHeight when possible 2016-11-02 17:08:38 -03:00
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c
mm.c
mmf.c
mms.c
mms.h
mmsh.c lavf: forward protocol_whitelist for the remaining cases 2016-08-05 16:18:49 +02:00
mmst.c
mov_chan.c
mov_chan.h
mov.c lavf/mov.c: Fallback to finding non-keyframe in fix_index, if keyframe search fails. 2016-11-10 17:44:47 +01:00
movenc.c lavf/movenc: Do not print an error when muxing gray8 rawvideo. 2016-11-05 00:43:31 +01:00
movenc.h lavf/movenc: Allow to disable writing the timecode track. 2016-09-26 08:50:48 +02:00
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c
mp3enc.c lavf/mp3enc: write encoder delay/padding upon closing 2016-10-18 20:19:43 +02:00
mpc8.c
mpc.c
mpeg.c
mpeg.h
mpegenc.c
mpegts.c mpegts: prevent division by zero 2016-11-08 22:27:11 +01:00
mpegts.h
mpegtsenc.c lavf/mpegtsenc: write metadata descriptor for timed ID3 packets 2016-11-06 12:36:51 +01:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c
mpsubdec.c
msf.c avformat/msf: add support for ATRAC3 codec 2016-09-15 16:59:31 +02:00
msnwc_tcp.c
mtaf.c
mtv.c
musx.c
mux.c avformat/mux: remove unnecessary autobsf hack 2016-11-05 22:42:23 -03:00
mvdec.c mvdec: validate sample_rate 2016-11-07 00:51:49 +01:00
mvi.c
mxf.c
mxf.h
mxfdec.c mxfdec: fix NULL pointer dereference 2016-11-05 18:56:41 +01:00
mxfenc.c lavf/mxfenc: Do not print a useless error message. 2016-10-11 09:45:37 +02:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nsvdec.c
nullenc.c
nut.c nut: add gray12 support 2016-11-10 01:18:43 +01:00
nut.h
nutdec.c
nutenc.c
nuv.c nuv: validate sample_rate 2016-11-07 00:51:49 +01:00
oggdec.c
oggdec.h avformat/oggdec: Fix integer overflow with invalid pts 2016-08-03 16:09:03 +02:00
oggenc.c avformat/oggenc: add vp8 muxing support 2016-07-20 22:32:48 -03:00
oggparsecelt.c
oggparsedaala.c
oggparsedirac.c
oggparseflac.c
oggparseogm.c
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c oggparsespeex: validate sample_rate 2016-11-07 00:51:49 +01:00
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c lavf: fix typos 2016-10-09 20:09:00 +02:00
oma.c
oma.h
omadec.c
omaenc.c
options_table.h lavf: add a flag to enable/disable automatic bitstream filtering 2016-09-12 21:50:32 -05:00
options.c avformat/mux: implement AVFMT_FLAG_SHORTEST 2016-09-11 23:17:31 +02:00
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c lavf/pcmdec: Try to fix msvc compilation after 4c42d306. 2016-08-18 09:45:25 +02:00
pcmenc.c
pjsdec.c
pmpdec.c
protocols.c avformat: Add tee protocol 2016-07-19 18:41:19 +02:00
psxstr.c cosmetics: fix some misspelled words 2016-07-17 13:10:27 -03:00
pva.c
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c
rawdec.c
rawdec.h
rawenc.c lavf/rawenc: add automatic bitstream filtering for H264+HEVC 2016-10-24 03:53:24 -05:00
rawenc.h
rawutils.c
rawvideodec.c
rdt.c
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c lavf/riff: Document the interleaving of VSM4 video. 2016-10-19 23:39:19 +02:00
riff.h
riffdec.c
riffenc.c lavf/riffenc: Always write unexpected channel_mask. 2016-10-12 12:34:48 +02:00
rl2.c
rm.c
rm.h
rmdec.c lavf/rmdec: Do not return EIO on EOF. 2016-08-02 16:16:31 +02:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c
rsd.c rsd: limit number of channels 2016-10-20 19:54:54 +02:00
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmphttp.c lavf: forward protocol_whitelist for the remaining cases 2016-08-05 16:18:49 +02:00
rtmppkt.c
rtmppkt.h
rtmpproto.c avformat/rtmpproto: Fix RTMP control message handling error in listen mode. 2016-10-21 16:16:32 +02:00
rtp.c
rtp.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c libavformat/rtpdec_asf: zero initialize the AVIOContext struct 2016-07-25 19:39:13 +02:00
rtpdec_dv.c
rtpdec_formats.h lavf/rtpdec_g726: Map mime type G726 to g726le. 2016-10-22 03:53:38 +02:00
rtpdec_g726.c lavf/rtpdec_g726: Map mime type G726 to g726le. 2016-10-22 03:53:38 +02:00
rtpdec_h261.c
rtpdec_h263_rfc2190.c
rtpdec_h263.c
rtpdec_h264.c
rtpdec_hevc.c
rtpdec_ilbc.c
rtpdec_jpeg.c
rtpdec_latm.c
rtpdec_mpa_robust.c
rtpdec_mpeg4.c
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c
rtpdec_svq3.c
rtpdec_vc2hq.c
rtpdec_vp8.c
rtpdec_vp9.c
rtpdec_xiph.c
rtpdec.c avformat/rtpdec: Add support for 24 bit RTSP audio playback 2016-11-05 17:21:57 +01:00
rtpdec.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c
rtpenc_chain.h
rtpenc_h261.c
rtpenc_h263_rfc2190.c
rtpenc_h263.c
rtpenc_h264_hevc.c
rtpenc_jpeg.c
rtpenc_latm.c
rtpenc_mpegts.c
rtpenc_mpv.c
rtpenc_vc2hq.c Merge commit '4024b566d664a4b161d677554be52f32e7ad4236' 2016-06-26 15:12:48 +02:00
rtpenc_vp8.c
rtpenc_vp9.c
rtpenc_xiph.c
rtpenc.c
rtpenc.h
rtpproto.c
rtpproto.h
rtsp.c lavf/rtsp: Fix a crash with the RTSP muxer. 2016-09-15 13:50:57 +02:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c
sctp.c
sdp.c cosmetics: fix some misspelled words 2016-07-17 13:10:27 -03:00
sdr2.c
segafilm.c
segment.c lavf/segment: fix autobsf 2016-11-02 01:16:23 -05:00
shortendec.c
sierravmd.c
siff.c
smacker.c
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c
smush.c
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c
srtdec.c lavf/srtdec: fix indent 2016-06-25 15:53:11 -05:00
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
svag.c
swf.c
swf.h
swfdec.c lavf: fix typos 2016-10-09 20:09:00 +02:00
swfenc.c
takdec.c Merge commit 'b668662939de3a02454cfc9ba3e6d10b87527a40' 2016-06-29 11:35:10 +02:00
tcp.c avformat/tcp: Put struct sockaddr_in6 under #if 2016-11-06 21:29:12 +01:00
tedcaptionsdec.c
tee_common.c avformat/tee: Factor parse_slave_options() out 2016-08-02 20:22:55 +02:00
tee_common.h avformat/tee: Factor parse_slave_options() out 2016-08-02 20:22:55 +02:00
tee.c avformat/tee: Copy interrupt callback and flags to slave 2016-09-29 17:17:26 +02:00
teeproto.c avformat/teeproto: set forgotten url_close() 2016-08-05 18:59:21 +02:00
thp.c
tiertexseq.c
tls_gnutls.c
tls_openssl.c openssl: Allow newer TLS versions than TLSv1 2016-10-30 13:18:45 +00:00
tls_schannel.c
tls_securetransport.c
tls.c
tls.h
tmv.c
tta.c avformat/tta: remove custom crc callback function 2016-08-04 16:25:36 -03:00
ttaenc.c avformat: add a TTA Muxer 2016-08-04 16:25:40 -03:00
tty.c
txd.c
udp.c lavf/udp: Do not use MCAST_* for multicast on tvOS. 2016-09-03 15:18:40 +02:00
uncodedframecrcenc.c
unix.c
url.c
url.h
urldecode.c
urldecode.h
utils.c avformat: close parser if codec changed 2016-11-02 22:19:14 +01:00
v210.c
vag.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h Bump minor versions after 3.2 branchpoint to seperate release 2016-10-26 20:52:42 +02:00
vivo.c
voc_packet.c voc_packet: validate sample_rate 2016-11-07 00:51:49 +01:00
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpcc.c
vpcc.h
vpk.c
vplayerdec.c lavf/vplayerdec: Improve auto-detection. 2016-07-15 10:36:05 +02:00
vqf.c
w64.c
w64.h
wavdec.c
wavenc.c
wc3movie.c
webm_chunk.c libavformat/webm_chunk: Option to specify HTTP header 2016-09-16 03:13:21 +02:00
webmdashenc.c
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c westwood_aud: prevent division by zero 2016-10-17 20:42:18 +02:00
westwood_vqa.c
wsddec.c
wtv_common.c
wtv.h
wtvdec.c avformat/wtvdec: Check pointer before use 2016-08-21 21:31:46 +02:00
wtvenc.c
wv.c
wv.h
wvdec.c
wvedec.c
wvenc.c
xa.c
xmv.c xmv: validate sample_rate 2016-11-07 00:51:49 +01:00
xvag.c
xwma.c
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c