diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-03-01 01:20:39 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-03-01 01:20:39 +0000 |
commit | a0e3c9e2e8ec0147a54cbc2f628c345f9f7ddfb7 (patch) | |
tree | 8d9bae897b7deedff05662445b93d16029ac62e9 /debug/readlink_chk.c | |
parent | 87816274f4d137143a84612747c8a39b656f3730 (diff) | |
download | glibc-a0e3c9e2e8ec0147a54cbc2f628c345f9f7ddfb7.tar.gz glibc-a0e3c9e2e8ec0147a54cbc2f628c345f9f7ddfb7.tar.xz glibc-a0e3c9e2e8ec0147a54cbc2f628c345f9f7ddfb7.zip |
* 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.
Diffstat (limited to 'debug/readlink_chk.c')
-rw-r--r-- | debug/readlink_chk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/readlink_chk.c b/debug/readlink_chk.c index d8d61dc699..ac18ee2c29 100644 --- a/debug/readlink_chk.c +++ b/debug/readlink_chk.c @@ -31,8 +31,8 @@ __readlink_chk (const char *path, void *buf, size_t len, size_t buflen) __chk_fail (); #ifdef HAVE_INLINED_SYSCALLS - return INLINE_SYSCALL (readlink, 3, path, buf, MIN (len, buflen + 1)); + return INLINE_SYSCALL (readlink, 3, path, buf, len); #else - return __readlink (path, buf, MIN (len, buflen + 1)); + return __readlink (path, buf, len); #endif } |