aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/proresenc_kostya.c
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2013-01-22 17:49:29 -0500
committerMichael Niedermayer <michaelni@gmx.at>2013-01-23 05:28:38 +0100
commit902cfe2f74d777a7dc20ac68f2393b9f84b790c1 (patch)
tree4499bb053a2f4f9737f7a9ec0a2659c697e15eb8 /libavcodec/proresenc_kostya.c
parent2f014567cfd63e58156f60666f1a61ba147276ab (diff)
downloadffmpeg-902cfe2f74d777a7dc20ac68f2393b9f84b790c1.tar.gz
rtmp: fix multiple broken overflow checks
Sanity checks like `data + size >= data_end || data + size < data' are broken, because `data + size < data' assumes pointer overflow, which is undefined behavior in C. Many compilers such as gcc/clang optimize such checks away. Use `size < 0 || size >= data_end - data' instead. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/proresenc_kostya.c')
0 files changed, 0 insertions, 0 deletions