ffmpeg/libavutil
Mans Rullgard 73ad066939 intfloat_readwrite: fix signed addition overflows
These additions might overflow the signed range for large
input values.  Converting to unsigned before the addition
rather than after avoids such undefined behaviour.  The
result under normal two's complement wraparound remains
unchanged.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 88d1e2b2b0)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2012-03-18 17:50:48 +01:00
..
arm ARM: simplify inline asm with 64-bit operands 2011-05-30 21:19:57 +01:00
avr32
bfin
mips
ppc configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS. 2011-05-12 11:41:59 +02:00
sh4
tomi
x86 cpu detection: avoid a signed overflow 2011-09-26 19:26:31 +02:00
Makefile Move metadata API from lavf to lavu. 2011-06-08 07:43:45 +02:00
adler32.c
adler32.h
aes.c
aes.h
attributes.h
audioconvert.c Drop unnecessary directory prefixes from #include directives. 2011-06-07 10:31:26 +02:00
audioconvert.h
avassert.h multiple inclusion guard cleanup 2011-05-21 13:48:10 +02:00
avstring.c
avstring.h
avutil.h Add minor bumps and APIChanges entries for lavf private options. 2011-06-16 20:24:58 +02:00
base64.c
base64.h
bswap.h bswap.h: Remove disabled code. 2011-04-29 20:01:04 +02:00
colorspace.h
common.h Add av_clip_uintp2() function 2011-05-13 16:45:24 -04:00
cpu.c
cpu.h multiple inclusion guard cleanup 2011-05-21 13:48:10 +02:00
crc.c crc: fix signed overflow 2012-03-18 17:50:35 +01:00
crc.h
crc_data.h
des.c
des.h
dict.c dict: add AV_DICT_APPEND flag. 2011-06-16 20:24:56 +02:00
dict.h doxygen: fix usage of @file directive in libavutil/{dict,file}.h 2011-07-03 19:58:29 +02:00
error.c error: sort, pack, and align error code and string definitions 2011-04-21 16:48:29 +02:00
error.h error: sort, pack, and align error code and string definitions 2011-04-21 16:48:29 +02:00
eval.c eval: fix memleak. 2011-09-26 19:26:28 +02:00
eval.h lavu: remove FF_API_OLD_EVAL_NAMES cruft 2011-04-19 19:03:44 +02:00
fifo.c
fifo.h
file.c Fix error check in av_file_map() 2011-06-04 17:03:25 +01:00
file.h doxygen: fix usage of @file directive in libavutil/{dict,file}.h 2011-07-03 19:58:29 +02:00
imgutils.c imgutils: Fix illegal read. 2011-12-04 09:18:17 +01:00
imgutils.h doxygen: Drop array size declarations from Doxygen parameter names. 2011-07-03 19:58:33 +02:00
integer.c
integer.h
internal.h Move metadata API from lavf to lavu. 2011-06-08 07:43:45 +02:00
intfloat_readwrite.c intfloat_readwrite: fix signed addition overflows 2012-03-18 17:50:48 +01:00
intfloat_readwrite.h
intmath.h
intreadwrite.h intreadwrite.h: fix AV_RL32/AV_RB32 signedness. 2011-06-16 20:49:19 +02:00
inverse.c inverse.c: Replace unnecessary intmath.h header by necessary stdint.h. 2011-06-07 10:31:26 +02:00
lfg.c
lfg.h doxygen: Drop array size declarations from Doxygen parameter names. 2011-07-03 19:58:33 +02:00
libavutil.v
libm.h Provide a fallback version of the libm function trunc 2011-04-21 14:13:09 +03:00
lls.c
lls.h
log.c log: Fix an oob array read. 2011-05-08 13:34:05 -07:00
log.h AVOptions: add av_opt_find() as a replacement for av_find_opt. 2011-06-16 20:24:56 +02:00
lzo.c
lzo.h doxygen: Prefer member groups over grouping into modules 2011-07-03 19:49:53 +02:00
mathematics.c
mathematics.h
md5.c
md5.h
mem.c Increase alignment of av_malloc() as needed by AVX ASM. 2011-04-26 18:18:22 +02:00
mem.h lavu: remove misc disabled cruft 2011-04-19 19:04:28 +02:00
opt.c AVOptions: add av_opt_find() as a replacement for av_find_opt. 2011-06-16 20:24:56 +02:00
opt.h AVOptions: fix av_set_string3() doxy to match reality. 2011-09-26 19:26:31 +02:00
parseutils.c Drop unnecessary directory prefixes from #include directives. 2011-06-07 10:31:26 +02:00
parseutils.h Drop unnecessary directory prefixes from #include directives. 2011-06-07 10:31:26 +02:00
pca.c Eliminate pointless '#if 1' statements without matching '#else'. 2011-04-26 20:18:27 +02:00
pca.h
pixdesc.c pix_fmt: Fix number of bits per component in yuv444p9be 2011-09-26 19:26:29 +02:00
pixdesc.h lavu: add av_get_pix_fmt_name() convenience function 2011-05-28 09:44:18 -04:00
pixfmt.h libavutil/swscale: YUV444P10/YUV444P9 support. 2011-06-10 15:12:24 -04:00
random_seed.c lavu: remove disabled ff_random_get_seed cruft. 2011-04-19 21:50:12 +02:00
random_seed.h
rational.c
rational.h
rc4.c
rc4.h
samplefmt.c samplefmt: add av_get_bytes_per_sample() 2011-06-07 13:06:41 -04:00
samplefmt.h samplefmt: add av_get_bytes_per_sample() 2011-06-07 13:06:41 -04:00
sha.c lavu: remove disabled sha1 cruft. 2011-04-19 21:50:10 +02:00
sha.h
timer.h
tree.c
tree.h
utils.c lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums 2011-04-26 08:38:57 +02:00
x86_cpu.h