diff options
Diffstat (limited to 'src/stdio/fread.c')
| -rw-r--r-- | src/stdio/fread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/fread.c b/src/stdio/fread.c index 5b7f38b4..7ddf358f 100644 --- a/src/stdio/fread.c +++ b/src/stdio/fread.c @@ -9,6 +9,7 @@ size_t fread(void * restrict ptr, size_t size, size_t nmemb, FILE * restrict str size_t n = 0; SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(ptr, size * nmemb, stream, sizeof(*stream)); flockfile(stream); while (nmemb) { |
