Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-04-07 14:49:09 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-04-11 02:05:05 +0300
commita44b3abb4cf922e379fbac55452d0482a8223597 (patch)
tree203bffc8e867beeb92c76cc4b97d8c70bc9338d4 /libavutil/internal.h
parent25e491b6f9dba26bd4a10c256150debfb13252db (diff)
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>
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r--libavutil/internal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 7780a9a791..a2d73e3cc6 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -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>