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 v2][BZ #14286] Fix integer overflow in vfwprintf.


On Mon, Oct 21, 2013 at 03:18:07PM +0200, Andreas Schwab wrote:
> OndÅej BÃlka <neleai@seznam.cz> writes:
> 
> > On Mon, Oct 21, 2013 at 12:12:36PM +0200, Andreas Schwab wrote:
> >> OndÅej BÃlka <neleai@seznam.cz> writes:
> >> 
> >> > I copied that from case when malloc fails that if I read code
> >> > correctly does not set ENOMEM.
> >> 
> >> Testcase?
> >>
> >
> > Here, nothing gets written but errno is 0.
> 
> And in which way is that a valid test case?
> 
When input is big for malloc to fail then it does not set errno. If
input is bigger and it trigger overflow then it would set errno to
EOVERFLOW which is inconsistent.


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