ffmpeg/libavutil
Xi Wang cab9624892 lzo: fix overflow checking in copy_backptr()
The check `src > dst' in the form `&c->out[-back] > c->out' invokes
pointer overflow, which is undefined behavior in C.

Remove the check.  Also replace `&c->out[-back] < c->out_start' with
a safe form `c->out - c->out_start < back' to avoid overflow.

CC: libav-stable@libav.org

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>

(cherry picked from commit ca6c3f2c53)

Conflicts:
	libavutil/lzo.c
2013-03-15 13:35:59 +01:00
..
arm bswap: make generic implementation more compiler-friendly 2011-12-12 12:14:14 +00:00
avr32
bfin
mips
ppc
sh4
tomi
x86 mpegaudiodec: optimized iMDCT transform 2012-01-08 17:40:55 -08:00
Makefile avutil: make intfloat api public 2012-02-29 10:44:37 +01:00
adler32.c tests/examples: Mark some variables only used within their files as static. 2011-12-08 01:01:00 +01:00
adler32.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
aes.c Replace Subversion revisions in comments by Git hashes. 2011-12-21 09:04:25 +01:00
aes.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
attributes.h
audioconvert.c Fix av_get_channel_layout_string() for positions >31 2011-11-25 15:19:55 +00:00
audioconvert.h audioconvert: add some additional channel and channel layout macros 2011-12-09 16:12:58 -05:00
avassert.h
avstring.c avstring: Add locale independent implementations of strcasecmp/strncasecmp 2011-11-06 11:52:56 +02:00
avstring.h doxygen: misc consistency, spelling and wording fixes 2011-12-12 23:06:23 +01:00
avutil.h avutil: add AVERROR_UNKNOWN 2012-03-04 12:26:06 +01:00
base64.c
base64.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
bswap.h bswap: make generic implementation more compiler-friendly 2011-12-12 12:14:14 +00:00
colorspace.h
common.h Add av_popcount64 2012-01-03 14:25:43 +01:00
cpu.c x86: XOP/FMA4 CPU detection support 2011-09-26 15:30:31 -07:00
cpu.h x86: XOP/FMA4 CPU detection support 2011-09-26 15:30:31 -07:00
crc.c Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c. 2011-12-03 15:13:48 -08:00
crc.h
crc_data.h
des.c des: add possibility to calculate DES-CBC-MAC with small buffer 2011-09-21 08:28:20 +02:00
des.h des: add possibility to calculate DES-CBC-MAC with small buffer 2011-09-21 08:28:20 +02:00
dict.c Remove leftover includes of strings.h 2011-11-06 11:53:05 +02:00
dict.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
error.c avutil: add AVERROR_UNKNOWN 2012-03-04 12:26:06 +01:00
error.h avutil: add AVERROR_UNKNOWN 2012-03-04 12:26:06 +01:00
eval.c eval: fix swapping of lt() and lte() 2012-09-28 08:05:40 +02:00
eval.h Fix a bunch of common typos. 2011-12-11 00:32:25 +01:00
fifo.c
fifo.h
file.c
file.h
imgutils.c imgutils: Fix illegal read. 2011-11-18 17:42:49 -08:00
imgutils.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
internal.h doxygen: misc consistency, spelling and wording fixes 2011-12-12 23:06:23 +01:00
intfloat.h lavu: replace int/float punning functions 2011-12-11 18:47:19 +00:00
intfloat_readwrite.c intfloat_readwrite: fix signed addition overflows 2011-10-11 14:42:28 +01:00
intfloat_readwrite.h lavu: replace int/float punning functions 2011-12-11 18:47:19 +00:00
intmath.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
intreadwrite.h
inverse.c
lfg.c Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c. 2011-12-03 15:13:48 -08:00
lfg.h
libavutil.v
libm.h
lls.c
lls.h
log.c Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c. 2011-12-03 15:13:48 -08:00
log.h log.h: make AVClass a named struct 2011-10-12 23:39:31 +02:00
lzo.c lzo: fix overflow checking in copy_backptr() 2013-03-15 13:35:59 +01:00
lzo.h doxygen: Replace '\' by '@' in Doxygen markup tags. 2011-12-07 15:29:14 +01:00
mathematics.c
mathematics.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
md5.c
md5.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
mem.c
mem.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
opt.c opt: avoid segfault in av_opt_next() if the class does not have an option list 2013-01-12 17:59:40 +01:00
opt.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
parseutils.c avutil: Add av_timegm as a public function 2011-11-16 11:22:41 +02:00
parseutils.h doxygen: misc consistency, spelling and wording fixes 2011-12-12 23:06:23 +01:00
pixdesc.c Cleaned pixdesc.c file in libavutil 2011-12-03 14:36:11 -08:00
pixdesc.h Clean up swscale pixfmt macros using av_pix_fmt_descriptors[]. 2011-11-24 08:24:55 -08:00
pixfmt.h pixfmt: add planar RGB formats. 2011-11-24 08:13:50 -08:00
random_seed.c Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c. 2011-12-03 15:13:48 -08:00
random_seed.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
rational.c Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c. 2011-12-03 15:13:48 -08:00
rational.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
rc4.c
rc4.h
samplefmt.c libavutil: add utility functions to simplify allocation of audio buffers. 2011-11-23 18:39:28 -05:00
samplefmt.h libavutil: add utility functions to simplify allocation of audio buffers. 2011-11-23 18:39:28 -05:00
sha.c
sha.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
timer.h timer: K&R formatting cosmetics 2012-01-05 14:48:30 +01:00
tree.c Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c. 2011-12-03 15:13:48 -08:00
tree.h doxy: provide a start page and document libavutil 2011-11-22 17:16:02 +01:00
utils.c
x86_cpu.h