Commit 278bd748 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a44b3abb)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 7fe0a0e9
...@@ -30,9 +30,8 @@ ...@@ -30,9 +30,8 @@
# define NDEBUG # define NDEBUG
#endif #endif
#if defined(DEBUG) && !defined(CHECKED) // This can be enabled to allow detection of additional integer overflows with ubsan
# define CHECKED //#define CHECKED
#endif
#include <limits.h> #include <limits.h>
#include <stdint.h> #include <stdint.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment