This is the mail archive of the libc-alpha@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] |
+ const size_t path_len = (size_t) INT_MAX + 1; + char *path = malloc(path_len); Sorry, missed space before parenth here. Updated patch attached. On Mon, Apr 9, 2018 at 4:01 PM Paul Pluzhnikov <ppluzhnikov@google.com> wrote: > Greetings, > Attached is a trivial fix, and a test case. > Thanks, > 2018-04-09 Paul Pluzhnikov <ppluzhnikov@google.com> > [BZ #22786] > * stdlib/canonicalize.c (__realpath): Fix overflow in path length > computation. > * stdlib/Makefile (test-bz22786): New test. > * stdlib/test-bz22786.c: New test. > -- > Paul Pluzhnikov -- Paul Pluzhnikov
Attachment:
glibc-bz22786-20180409a.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |