Fix for rman [was: Re: [-CURRENT tinderbox] ...]

Kris Kennaway kris at obsecurity.org
Wed Jul 16 01:52:38 PDT 2003


On Wed, Jul 16, 2003 at 12:43:37AM -0700, Marcel Moolenaar wrote:
> On Tue, Jul 15, 2003 at 10:16:01PM -0700, Kris Kennaway wrote:
> > > 
> > > malloc, you say? I have build failures in XFree4-clients because
> > > rman coredumps and I have a backtrace full of free() frames...
> > > 
> > > Coincidence?
> > 
> > Some of the XFree86 utilities contain malloc bugs..rman in particular
> > has been dumping core on certain ports for a couple of years.  I tried
> > to track it down once but couldn't find it.
> 
> [cc anholt@]
> 
> The attached patch fixes rman. The faulting case is "\\\0". The '\0'
> was handled in the default case for escaped characters, which also
> incremented the pointer p beyond the terminating '\0'. 
> 
> Oh: this goes to devel/imake-4 of course.

Hmm, I'm not sure this is the same bug I was seeing, because mine went
away when I turned off malloc debugging.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030716/472afb58/attachment.bin


More information about the freebsd-current mailing list