new regex code and malloc(0)

Peter S. Mazinger ps.m at gmx.net
Wed Jan 11 14:05:25 UTC 2006


On Wed, 11 Jan 2006, Mike Frysinger wrote:

> On Wednesday 11 January 2006 06:17, Peter S. Mazinger wrote:
> > On Wed, 11 Jan 2006, Mike Frysinger wrote:
> > > while testing the x86_64 port i kept hitting:
> > > $ file test.c
> > > test.c: ERROR: regex error 12, (Memory exhausted)
> > >
> > > after puzzling for a while i remembered that we were looking into this
> > > before in Gentoo ... feel like adding that patch (whatever we had) to our
> > > regex.c Peter ?
> >
> > COMPAT_GLIBC enabled?
> 
> no, it's disabled, and that's the point :)
> 
> new regex code fails if malloc(0) returns NULL

the old one could fail as well I think, but I have no patch for that, 
will see if the one I have applies cleanly to new regex.

Peter
> 
> > I have for following files patches related to this:
> > sed/lib/regex_internal.c
> 
> prob this one ... the gnulib regex and the glibc regex should be pretty much 
> the same
> -mike
> 
> 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list