From 4b43b375b7abae22070cd86bfc26a8222233150e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 13:24:56 -0500 Subject: check for overlapping pointers --- src/stdio/setvbuf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stdio/setvbuf.c') diff --git a/src/stdio/setvbuf.c b/src/stdio/setvbuf.c index a6f37fb0..b400b266 100644 --- a/src/stdio/setvbuf.c +++ b/src/stdio/setvbuf.c @@ -8,6 +8,7 @@ int setvbuf(FILE *stream, char *buf, int mode, size_t size) { SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(stream, sizeof(*stream), buf, size); flockfile(stream); -- cgit v1.2.1