diff options
| -rw-r--r-- | include/fortify-headers.h | 4 | ||||
| -rw-r--r-- | tests/Makefile | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/fortify-headers.h b/include/fortify-headers.h index 796fd2d..f7d8af8 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h | |||
| @@ -141,8 +141,8 @@ | |||
| 141 | * since gcc seems to like to generate code that relies on dst == src */ | 141 | * since gcc seems to like to generate code that relies on dst == src */ |
| 142 | #define __fh_overlap(a, len_a, b, len_b) \ | 142 | #define __fh_overlap(a, len_a, b, len_b) \ |
| 143 | ( \ | 143 | ( \ |
| 144 | ((a) < (b) && (b) < ((a) + (__fh_size_t)(len_a))) \ | 144 | ((char*)(a) < (char*)(b) && (char*)(b) < ((char*)(a) + (__fh_size_t)(len_a))) \ |
| 145 | || ((b) < (a) && (a) < ((b) + (__fh_size_t)(len_b))) \ | 145 | || ((char*)(b) < (char*)(a) && (char*)(a) < ((char*)(b) + (__fh_size_t)(len_b))) \ |
| 146 | ) | 146 | ) |
| 147 | 147 | ||
| 148 | /* | 148 | /* |
diff --git a/tests/Makefile b/tests/Makefile index 32b17b0..d6f5b5d 100644 --- a/tests/Makefile +++ b/tests/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | CFLAGS+=-I../include/ -D_FORTIFY_SOURCE=3 -static -O2 -DPEDANTIC_CHECKS -Wno-format | 1 | CFLAGS+=-I../include/ -D_FORTIFY_SOURCE=3 -static -O2 -DPEDANTIC_CHECKS -Wno-format -Werror=pointer-arith |
| 2 | 2 | ||
| 3 | COMPTIME_TARGETS= \ | 3 | COMPTIME_TARGETS= \ |
| 4 | test_memcpy_overwrite_under \ | 4 | test_memcpy_overwrite_under \ |
