This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/24740] getdents64 type confusion


https://sourceware.org/bugzilla/show_bug.cgi?id=24740

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a620bd7935c4b2dc94e472e62bd9a5c9434ea7b7

commit a620bd7935c4b2dc94e472e62bd9a5c9434ea7b7
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Jun 27 15:08:40 2019 +0200

    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>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]