From 43b4e11fb424b238ff3ed2965c8794a56eb335ad Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Thu, 2 Mar 2017 01:54:41 +0200 Subject: [PATCH] Comment out OOB read warning OOB reads happen in invalid input testcases. --- test_lowzip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_lowzip.c b/test_lowzip.c index 716fcc0..241e2ad 100644 --- a/test_lowzip.c +++ b/test_lowzip.c @@ -27,7 +27,9 @@ unsigned int my_read(void *udata, unsigned int offset) { /* Out-of-bounds read, no file I/O. */ if (offset >= st->input_length) { +#if 0 fprintf(stderr, "OOB read (offset %ld)\n", (long) offset); +#endif return 0x100U; }