diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-06-27 15:08:40 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-06-27 15:08:40 +0200 |
commit | a620bd7935c4b2dc94e472e62bd9a5c9434ea7b7 (patch) | |
tree | 0741388f6c9acdf7621676f6bf4829f0bb7ac44f /ChangeLog | |
parent | d039da1c00e01f8d3c3d74f439a971eb73e3045e (diff) | |
download | glibc-a620bd7935c4b2dc94e472e62bd9a5c9434ea7b7.tar glibc-a620bd7935c4b2dc94e472e62bd9a5c9434ea7b7.tar.gz glibc-a620bd7935c4b2dc94e472e62bd9a5c9434ea7b7.tar.bz2 glibc-a620bd7935c4b2dc94e472e62bd9a5c9434ea7b7.zip |
Linux: Adjust gedents64 buffer size to int range [BZ #24740]
The kernel interface uses type unsigned int, but there is an
internal conversion to int, so INT_MAX is the correct limit.
Part of the buffer will always be unused, but this is not a
problem. Such huge buffers do not occur in practice anyway.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,15 @@ +2019-06-27 Florian Weimer <fweimer@redhat.com> + + [BZ #24740] + * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust + buffer size if necessary. + * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64): + Likewise. + * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check): + New function. + (large_buffer_checks): Likewise. + (do_test): Call large_buffer_checks. + 2019-06-26 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/i386/dl-lookupcfg.h: Moved to ... |