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 memory leak in printf_positional


On Sat, Aug 29, 2015 at 09:35:43PM -0700, Paul Pluzhnikov wrote:
> On Sat, Aug 29, 2015 at 9:29 PM, OndÅej BÃlka <neleai@seznam.cz> wrote:
> 
> > There is also problem what this would catch, as in future a problem
> > could be with 65536 arguments or other magical constant this isn't that
> > much useful.
> 
> Sorry, you lost me.
> 
> The test case catches the existing bug that the patch at the start of
> this thread fixes.
> 
> I am sure there other bugs that this test doesn't catch, and I am sure
> there could be new bugs in the future that require more arguments to
> catch. I don't think these are good reasons not to have a test.
> 
Just that it doesn't make sense to add specific test for bugs that have very
narrow use case and are fixed as it won't catch similar ones with sligth
variation of parameters. Instead I would try to make generic tests that
would catch wider class of bugs.


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