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


On Sun, 22 Feb 2015, Paul Pluzhnikov wrote:

> On Sun, Feb 22, 2015 at 12:59 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
> 
> Thanks for the review.
> 
> >> 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.
> 
> I am not sure how to test for unbounded stack use.

Typically such tests use setrlimit to set a stack limit lower than the 
amount of stack space the code used before the fix.

-- 
Joseph S. Myers
joseph@codesourcery.com


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