aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/psymodel.h
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2013-01-22 17:49:29 -0500
committerMichael Niedermayer <michaelni@gmx.at>2013-02-07 01:00:01 +0100
commit7df878ac15077ccb1a4763fc285bd7e02b7b6a1f (patch)
tree5296943ceb7e79898662c37a846ac24d51b7a418 /libavcodec/psymodel.h
parentbc58fe0309a075b6f75aeef948a55eede927591c (diff)
downloadffmpeg-7df878ac15077ccb1a4763fc285bd7e02b7b6a1f.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> (cherry picked from commit 902cfe2f74d777a7dc20ac68f2393b9f84b790c1) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/psymodel.h')
0 files changed, 0 insertions, 0 deletions