[uClibc]Patch to fix globfree()

Norman Shulman norm at arcturusnetworks.com
Mon Apr 28 19:55:54 UTC 2003


uClibc 0.9.19 has a bug in globfree(). If the previous call to 
glob(...,pglob) used the GLOB_DOOFFS flag to reserve the first 
pglob->gl_offs slots of pglob->gl_pathv, globfree(pglob) would attempt 
to free the objects pointed to by those slots. If those objects were not 
on the heap, the system would crash.

The attached patch fixes this.

Norm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: globfree.patch
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20030428/e7096a7b/attachment.diff 


More information about the uClibc mailing list