Skip to content

Commit

Permalink
Comment out OOB read warning
Browse files Browse the repository at this point in the history
OOB reads happen in invalid input testcases.
  • Loading branch information
svaarala committed Mar 1, 2017
1 parent 52bdb61 commit 43b4e11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_lowzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 43b4e11

Please sign in to comment.