mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avutil/internal: Do not enable CHECKED with DEBUG
This avoids potential undefined behavior in debug mode while still allowing developers which want to check for potential additional overflows to do so by manually enabling this. Reviewed-by: wm4 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit a44b3abb4cf922e379fbac55452d0482a8223597) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7fe0a0e9e7
commit
278bd748a8
@ -30,9 +30,8 @@
|
||||
# define NDEBUG
|
||||
#endif
|
||||
|
||||
#if defined(DEBUG) && !defined(CHECKED)
|
||||
# define CHECKED
|
||||
#endif
|
||||
// This can be enabled to allow detection of additional integer overflows with ubsan
|
||||
//#define CHECKED
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user