diff options
author | Xi Wang <xi.wang@gmail.com> | 2013-01-22 17:49:29 -0500 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-01-23 13:51:27 +0200 |
commit | 3cff53369acdb3bc0695dd6d5df51457fdaa16ce (patch) | |
tree | 7a087bd477b07976adc2788a539241b2cd4ef98a /libavformat/rm.h | |
parent | 2e4130037cf3b64921976fbff4579bda0e91dc87 (diff) | |
download | ffmpeg-3cff53369acdb3bc0695dd6d5df51457fdaa16ce.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: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rm.h')
0 files changed, 0 insertions, 0 deletions