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]

Re: [patch] Fix BZ #17916 fopen unbounded stack usage for ccs= modes


* Paul Pluzhnikov:

> Attached patch fixes BZ #17916 fopen unbounded stack usage for ccs= modes
> Tested on Linux/x86_64, no failures.

This should have a test case.

There is a missing NULL check on the malloc result.  I don't think the
alloca optimization makes sense because this functionality is used so
rarely, and the function allocates on the heap anyway.  Just use
malloc unconditionally; it will result in smaller code.


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