mirror of https://github.com/FFmpeg/FFmpeg.git
Several compilers such as clang/icc/pathscale will optimize the check pos + size < pos (assuming size > 0) into false, since signed integer overflow is undefined behavior in C. This breaks overflow checking. Use a safe precondition check instead. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>pull/8/head
parent
3317414fc1
commit
64b7e7dcaf
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue