mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
* debug/read_chk.c (__read_chk): Always fail if the buffer is too
small. * debug/readlink_chk.c (__readlink_chk): Likewise. * debug/pread64_chk.c (__pread64_chk): Likewise. * debug/pread_chk.c (__pread_chk): Likewise.
This commit is contained in:
@@ -31,8 +31,8 @@ __read_chk (int fd, void *buf, size_t nbytes, size_t buflen)
|
||||
__chk_fail ();
|
||||
|
||||
#ifdef HAVE_INLINED_SYSCALLS
|
||||
return = INLINE_SYSCALL (read, 3, fd, buf, nbytes);
|
||||
return INLINE_SYSCALL (read, 3, fd, buf, nbytes);
|
||||
#else
|
||||
return = __read (fd, buf, nbytes);
|
||||
return __read (fd, buf, nbytes);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user