From e15afbce5d9d37443423e090dd0ccc47a662a43c Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 13 May 2016 11:09:57 -0700 Subject: [PATCH] dsp.h: fix ubsan macro name copy and paste error in the previous commit, change no_sanitize("unsigned-integer-overflow") from WEBP_UBSAN_IGNORE_UNDEF -> WEBP_UBSAN_IGNORE_UNSIGNED_OVERFLOW Change-Id: Id178ee14df1f2c4923a91ce423241e26b60b5d32 --- src/dsp/dsp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsp/dsp.h b/src/dsp/dsp.h index 0da76242..9838a364 100644 --- a/src/dsp/dsp.h +++ b/src/dsp/dsp.h @@ -120,8 +120,8 @@ extern "C" { // This macro prevents the undefined behavior sanitizer from reporting // failures related to unsigned integer overflows. This is only meant to // silence cases where this well defined behavior is expected. -#undef WEBP_UBSAN_IGNORE_UNDEF -#define WEBP_UBSAN_IGNORE_UNDEF \ +#undef WEBP_UBSAN_IGNORE_UNSIGNED_OVERFLOW +#define WEBP_UBSAN_IGNORE_UNSIGNED_OVERFLOW \ __attribute__((no_sanitize("unsigned-integer-overflow"))) #endif #endif