mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/28/head^2
parent
2e4130037c
commit
3cff53369a
1 changed files with 6 additions and 6 deletions
Loading…
Reference in new issue