Extend fread() and fwrite() to check for integer overflow, in which case
authorderaadt <deraadt@openbsd.org>
Thu, 1 May 2014 16:40:36 +0000 (16:40 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 1 May 2014 16:40:36 +0000 (16:40 +0000)
commit044c262ab6d70c4b17b8b847f74a12fc7e06d829
tree4db7ffe4651551eb0250eb724d6024061439bee8
parentf15b8528ac5197c3bd55592ea75aa7184f12be0f
Extend fread() and fwrite() to check for integer overflow, in which case
errno EOVERFLOW is returned and error is set on the FILE.
ok kettenis miod beck
lib/libc/stdio/fread.3
lib/libc/stdio/fread.c
lib/libc/stdio/fwrite.c