ffmpeg/libavcodec
Mean dcc3a30b58 prevent going out of the buffer if the nal size does not fit in the buffer.
Patch by Mean % fixounet A free P fr %
Original thread:
Date: Apr 29, 2007 2:00 PM
Subject: Re: [Ffmpeg-devel] [patch] h264.c, dont go beyond buffer in h264_decode_nal_unit

Originally committed as revision 8858 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-29 23:18:39 +00:00
..
alpha
armv4l add .type foo, %function directives for the benefit of debuggers 2007-04-19 20:09:43 +00:00
bfin Remove #if 0 code. 2007-04-03 11:26:14 +00:00
i386 Fix parts missed in clip -> av_clip rename 2007-04-19 16:12:06 +00:00
mlib
ppc ssd_int8_vs_int16_altivec, not completely benchmarkedwith svq1 2007-04-10 09:47:37 +00:00
ps2 typos/grammar 2007-04-07 14:09:20 +00:00
sh4 Fix parts missed in clip -> av_clip rename 2007-04-19 16:12:06 +00:00
sparc
4xm.c
8bps.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
a52dec.c Add proper #idef to dlsymm call, also fixes an unresolved symbol on OS X 10.2. 2007-03-03 08:33:07 +00:00
aasc.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
ac3.c move ac3 tables from a .h to a .c 2007-04-25 22:12:51 +00:00
ac3.h move ac3 tables from a .h to a .c 2007-04-25 22:12:51 +00:00
ac3enc.c cosmetics. align and condense. 2007-03-22 05:39:20 +00:00
ac3tab.c move ac3 tables from a .h to a .c 2007-04-25 22:12:51 +00:00
ac3tab.h cosmetics: align 2007-04-25 22:16:50 +00:00
adpcm.c Per reference swf/flv adpcm encoder. 2007-04-11 13:10:13 +00:00
adx.c
alac.c
allcodecs.c add V.Flash PTX decoder 2007-04-29 09:37:07 +00:00
amr.c Remove the build instructions from the doxygen comments, they are duplicated 2007-04-18 09:34:08 +00:00
apiexample.c
asv1.c
atrac3.c Deobfuscade decodeTonalComponents calling logic. 2007-04-18 19:58:20 +00:00
atrac3data.h Atrac3 decoder. 2007-04-17 20:53:39 +00:00
audioconvert.c
avcodec.h add V.Flash PTX decoder 2007-04-29 09:37:07 +00:00
avs.c
beosthread.c
bethsoftvideo.c shorter variable names 2007-04-07 23:30:47 +00:00
bethsoftvideo.h align vertically 2007-04-07 23:31:30 +00:00
bitstream_filter.c
bitstream.c fix init_vlc() with nonzero flags 2007-03-18 22:32:39 +00:00
bitstream.h Blackfin is a strictly aligned processor. 2007-04-21 23:05:30 +00:00
bmp.c
bmp.h
bmpenc.c
bytestream.h add little endian 24bit read/write 2007-03-06 13:05:38 +00:00
c93.c factorize & 0x0F 2007-04-08 09:44:34 +00:00
cabac.c
cabac.h Mark code parts that cannot work on AMD64 due to broken relocations as such. 2007-04-27 09:32:31 +00:00
cavs.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
cavsdata.h
cavsdsp.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
cinepak.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
cljr.c
cook.c Simplify, patch by Ramiro Polla. 2007-04-18 19:47:22 +00:00
cookdata.h
cscd.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
cyuv.c Remove superfluous setting of has_b_frames in codecs without B-frames. 2007-04-07 17:37:30 +00:00
dca.c fix exploitable buffer overflow 2007-04-27 12:41:55 +00:00
dcadata.h Fix wrong license header. 2007-02-27 09:56:09 +00:00
dcahuff.h DCA decoder 2007-02-27 06:30:40 +00:00
dct-test.c platform-independent restructuring and code simplification 2007-03-31 17:24:09 +00:00
dnxhddata.h dnxhd decoder 2007-03-18 23:25:00 +00:00
dnxhddec.c actually return bytes read 2007-03-25 00:16:30 +00:00
dpcm.c
dsicinav.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
dsputil.c mmx 16-bit ssd. 2.3x faster svq1 encoding. 2007-03-30 19:15:31 +00:00
dsputil.h Typos in comments 2007-03-30 20:56:32 +00:00
dtsdec.c
dv.c force 16-bytes alignement of block array, as needed by the implementation of ff_dct_sse2 2007-03-15 23:45:20 +00:00
dvbsub.c
dvbsubdec.c remove useless static cm variable 2007-03-13 22:53:01 +00:00
dvdata.h
dvdsubdec.c
dvdsubenc.c
dxa.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
error_resilience.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
eval.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
eval.h
faac.c free faac extradata 2007-02-28 09:56:15 +00:00
faad.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
faandct.c
faandct.h
fdctref.c
fft-test.c Add '#undef exit', the function is now forbidden. 2007-04-01 11:40:36 +00:00
fft.c
ffv1.c
flac.c
flacenc.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
flashsv.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
flashsvenc.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
flicvideo.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
fraps.c Remove superfluous setting of has_b_frames in codecs without B-frames. 2007-04-07 17:37:30 +00:00
g726.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
gif.c
gifdec.c simplify, patch by Mark Cox, melbournemark plus ffmpeg minus devel gmail com 2007-04-21 18:47:30 +00:00
golomb.c
golomb.h
h261.c kill av_mallocz_static() calls in init_rl() 2007-03-14 13:19:19 +00:00
h261data.h
h263.c 10l for myself, fixing --disable-encoders 2007-03-14 23:23:30 +00:00
h263data.h
h263dec.c Corrections so that builds with DEBUG work 2007-03-08 14:49:43 +00:00
h264.c prevent going out of the buffer if the nal size does not fit in the buffer. 2007-04-29 23:18:39 +00:00
h264data.h
h264dsp.c
h264enc.c
h264idct.c
huffyuv.c oops, encoder was under ifdef decoders. 2007-03-20 16:51:30 +00:00
idcinvideo.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
imc.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
imcdata.h
imgconvert_template.h
imgconvert.c Fix segmentation fault for gray16le to gray conversion. 2007-04-07 19:24:27 +00:00
imgresample.c Add the prefix "av_" to img_crop(), img_copy() and img_pad(), and rename "img" 2007-03-04 11:53:11 +00:00
indeo2.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
indeo2data.h
indeo3.c Remove superfluous setting of has_b_frames in codecs without B-frames. 2007-04-07 17:37:30 +00:00
indeo3data.h
interplayvideo.c Remove superfluous setting of has_b_frames in codecs without B-frames. 2007-04-07 17:37:30 +00:00
jfdctfst.c
jfdctint.c
jpeg_ls.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
jrevdct.c
kmvc.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
lcl.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
libgsm.c
libtheoraenc.c
loco.c
lzw.c factorize & 2007-03-26 00:54:29 +00:00
lzw.h LZW encoder by Bartlomiej Wolowiec b.wolowiec students mimuw edu pl 2007-04-07 15:10:22 +00:00
lzwenc.c superflouos () 2007-04-09 22:25:27 +00:00
mace.c
Makefile add V.Flash PTX decoder 2007-04-29 09:37:07 +00:00
mathops.h
mdct.c
mdec.c
mjpeg.c compile mjpeg parser if requested 2007-04-21 00:36:53 +00:00
mmvideo.c Remove superfluous setting of has_b_frames in codecs without B-frames. 2007-04-07 17:37:30 +00:00
motion_est_template.c doxy comment tweaks 2007-03-31 23:58:33 +00:00
motion_est.c doxy comment tweaks 2007-03-31 23:58:33 +00:00
motion_test.c Add '#undef exit', the function is now forbidden. 2007-04-01 11:40:36 +00:00
mp3lameaudio.c
mpc.c
mpcdata.h
mpeg4data.h
mpeg12.c typos/grammar 2007-04-07 14:09:20 +00:00
mpeg12data.h dummy support for mpeg2 non linear quant 2007-03-04 02:26:20 +00:00
mpegaudio.c check for channels<=0 and print a reasonable error message 2007-04-29 13:25:32 +00:00
mpegaudio.h
mpegaudiodec.c typos 2007-04-07 14:10:02 +00:00
mpegaudiodectab.h
mpegaudiotab.h
mpegvideo.c kill av_mallocz_static() calls in init_rl() 2007-03-14 13:19:19 +00:00
mpegvideo.h typos/grammar 2007-04-07 14:09:20 +00:00
msmpeg4.c kill av_mallocz_static() calls in init_rl() 2007-03-14 13:19:19 +00:00
msmpeg4data.h
msrle.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
msvideo1.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
nuv.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
oggvorbis.c
opt.c Fix a bug in av_find_opt(). Because some of the AVOption structures have field 2007-03-30 09:26:13 +00:00
opt.h add av_opt_set_defaults2() which sets just defaults from AVOptions whos flags match a user specified & mask = flags 2007-03-07 02:21:35 +00:00
os2thread.c
parser.c Move AC3 header parsing code together with the rest of the AC3 parsing code. 2007-04-15 12:32:36 +00:00
parser.h Move AC3 header parsing code together with the rest of the AC3 parsing code. 2007-04-15 12:32:36 +00:00
pcm.c 10^10l to whoever wrote this 2007-03-13 23:10:42 +00:00
png.c
pnm.c cosmetics after last commit 2007-04-10 09:16:35 +00:00
pthread.c
ptx.c add V.Flash PTX decoder 2007-04-29 09:37:07 +00:00
qdm2.c
qdm2data.h
qdrw.c This codec is PAL8 so make it output PAL8 too 2007-04-06 04:40:13 +00:00
qpeg.c Remove redundant assign 2007-03-27 05:23:07 +00:00
qtrle.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
ra144.c
ra144.h
ra288.c
ra288.h
rangecoder.c
rangecoder.h
ratecontrol.c typos/grammar 2007-04-07 14:09:20 +00:00
ratecontrol.h
raw.c compile rawvideo decoder on request 2007-04-21 00:47:55 +00:00
resample2.c Remove unused variable. 2007-04-08 13:02:25 +00:00
resample.c set more reasonable cutoff for audio rate conversion 2007-03-22 14:27:16 +00:00
rl.h kill av_mallocz_static() calls in init_rl() 2007-03-14 13:19:19 +00:00
rle.c dont use *int8_t for the arguments (ive missed that in the patches ...) 2007-04-03 06:46:12 +00:00
rle.h dont use *int8_t for the arguments (ive missed that in the patches ...) 2007-04-03 06:46:12 +00:00
roqvideo.c Remove superfluous setting of has_b_frames in codecs without B-frames. 2007-04-07 17:37:30 +00:00
rpza.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
rtjpeg.c
rtjpeg.h
rv10.c Check dimensions to avoid division by zero due to invalid new dimensions. 2007-03-11 09:16:11 +00:00
sgi.h SGI image decoder ported to the new image API. 2007-04-06 18:29:27 +00:00
sgidec.c SGI image decoder ported to the new image API. 2007-04-06 18:29:27 +00:00
sgienc.c SGI image decoder ported to the new image API. 2007-04-06 18:29:27 +00:00
shorten.c properly set *data_size when returning >= 0 values in shorten_decode_frame() 2007-03-26 00:00:43 +00:00
simple_idct.c enable some 64bit optimized code on 64bit arch 2007-02-28 00:55:19 +00:00
simple_idct.h
smacker.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
smc.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
snow.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
snow.h
sonic.c
sp5x.h
svq1_cb.h
svq1_vlc.h
svq1.c move some stuff out of an inner loop. 12% faster svq1 encoding. 2007-03-30 19:16:41 +00:00
svq3.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
targa.c
targaenc.c Changed the rle encoder a little and made it more universal. 2007-04-03 06:40:21 +00:00
tiertexseqv.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
tiff.c Add some Doxygen comments, by Kamil Nowosad, k.nowosad students.mimuw.edu pl. 2007-04-04 11:43:08 +00:00
tiff.h Add some Doxygen comments, by Kamil Nowosad, k.nowosad students.mimuw.edu pl. 2007-04-04 11:43:08 +00:00
tiffenc.c fix tiff regression test (bitexact flag was ignoredwhich caused the 2007-04-14 18:58:26 +00:00
truemotion1.c cosmetics: remove my email address 2007-04-20 23:59:22 +00:00
truemotion1data.h
truemotion2.c Remove redundant assign 2007-03-27 05:23:07 +00:00
truespeech_data.h
truespeech.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
tscc.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
tta.c
ulti_cb.h
ulti.c Remove redundant assign 2007-03-27 05:23:07 +00:00
utils.c typos 2007-04-07 14:10:02 +00:00
vc1.c Remove unused variable. 2007-04-21 15:55:45 +00:00
vc1acdata.h
vc1data.h
vc1dsp.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
vcr1.c
vmdav.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
vmnc.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
vorbis_data.c
vorbis_enc_data.h
vorbis_enc.c
vorbis.c extract vorbis header spliting code into a reusable function 2007-03-25 01:06:45 +00:00
vorbis.h
vp3.c Only compile in Theora-specific functions if the Theora decoder has been 2007-04-08 18:54:53 +00:00
vp3data.h
vp3dsp.c
vp5.c Use pointers to avoid copying AVFrame. 2007-02-25 15:33:38 +00:00
vp5data.h
vp6.c Use pointers to avoid copying AVFrame. 2007-02-25 15:33:38 +00:00
vp6data.h
vp56.c cleanup setting of returned data frame 2007-02-25 16:02:32 +00:00
vp56.h Use pointers to avoid copying AVFrame. 2007-02-25 15:33:38 +00:00
vp56data.c
vp56data.h Use pointers to avoid copying AVFrame. 2007-02-25 15:33:38 +00:00
vqavideo.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
w32thread.c
wavpack.c Correctly handle data_size on decoding 2007-03-20 05:44:42 +00:00
wma.c Optimize by building the mdct window and multipying/adding at the same time. 2007-03-26 10:03:57 +00:00
wma.h WMA decoder improvement, output closer to the dmo binary. 2007-04-04 13:49:55 +00:00
wmadata.h
wmadec.c WMA decoder improvement, output closer to the dmo binary. 2007-04-04 13:49:55 +00:00
wmaenc.c Optimize by building the mdct window and multipying/adding at the same time. 2007-03-26 10:03:57 +00:00
wmv2.c Add av_ prefix to clip functions 2007-02-25 10:27:12 +00:00
wnv1.c
ws-snd1.c
x264.c
xan.c Remove superfluous setting of has_b_frames in codecs without B-frames. 2007-04-07 17:37:30 +00:00
xiph.c extract vorbis header spliting code into a reusable function 2007-03-25 01:06:45 +00:00
xiph.h extract vorbis header spliting code into a reusable function 2007-03-25 01:06:45 +00:00
xl.c
xvid_internal.h
xvid_rc.c
xvidff.c
xvmc_render.h get rid of unused entries in the middle of xvmc_render struct, 2007-03-26 15:21:19 +00:00
xvmcvideo.c
zmbv.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00
zmbvenc.c Get rid of unnecessary pointer casts. 2007-04-08 20:24:16 +00:00