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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
bfin Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
mips Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
ppc configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS. 2011-05-12 11:41:59 +02:00
sh4 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
tomi Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
x86 cpu detection: avoid a signed overflow 2011-09-26 19:26:31 +02:00
adler32.c
adler32.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
aes.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
aes.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
attributes.h Remove unnecessary icc version checks 2011-03-23 12:39:58 +00:00
audioconvert.c Drop unnecessary directory prefixes from #include directives. 2011-06-07 10:31:26 +02:00
audioconvert.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
avassert.h multiple inclusion guard cleanup 2011-05-21 13:48:10 +02:00
avstring.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
avstring.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
avutil.h Add minor bumps and APIChanges entries for lavf private options. 2011-06-16 20:24:58 +02:00
base64.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
base64.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
bswap.h bswap.h: Remove disabled code. 2011-04-29 20:01:04 +02:00
colorspace.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
common.h Add av_clip_uintp2() function 2011-05-13 16:45:24 -04:00
cpu.c Add a CPU flag for the Atom processor. 2011-03-22 09:11:07 -04:00
cpu.h multiple inclusion guard cleanup 2011-05-21 13:48:10 +02:00
crc_data.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
crc.c crc: fix signed overflow 2012-03-18 17:50:35 +01:00
crc.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
des.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
des.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
fifo.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
integer.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
intmath.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
lls.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
lzo.h doxygen: Prefer member groups over grouping into modules 2011-07-03 19:49:53 +02:00
Makefile Move metadata API from lavf to lavu. 2011-06-08 07:43:45 +02:00
mathematics.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
mathematics.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
md5.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
md5.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
rational.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
rational.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
rc4.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
rc4.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
timer.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
tree.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
tree.h Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
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 Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00