diff options
author | Xi Wang <xi.wang@gmail.com> | 2013-01-22 17:49:29 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-22 22:34:14 +0200 |
commit | 4b7036c1d9d16f015ce2f35773b6c4a30ae6488e (patch) | |
tree | 925c22271b79b0c224c37ce54c3a5035525969ab /tests/fate-update.sh | |
parent | cf701b008fd3fa2d905463da68855b9ab8ba2777 (diff) | |
download | ffmpeg-4b7036c1d9d16f015ce2f35773b6c4a30ae6488e.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 'tests/fate-update.sh')
0 files changed, 0 insertions, 0 deletions