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.
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

gittup/uClibc,ndmsystems/uClibc,czankel/xtensa-uclibc,mephi42/uClibc,waweber/uclibc-clang,skristiansson/uClibc-or1k,foss-for-synopsys-dwc-arc-processors/uClibc,groundwater/uClibc,hjl-tools/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,majek/uclibc-vx32,foss-xtensa/uClibc,atgreen/uClibc-moxie,foss-xtensa/uClibc,m-labs/uclibc-lm32,wbx-github/uclibc-ng,ChickenRunjyd/klee-uclibc,czankel/xtensa-uclibc,foss-for-synopsys-dwc-arc-processors/uClibc,hjl-tools/uClibc,mephi42/uClibc,atgreen/uClibc-moxie,waweber/uclibc-clang,ffainelli/uClibc,klee/klee-uclibc,brgl/uclibc-ng,ChickenRunjyd/klee-uclibc,foss-xtensa/uClibc,OpenInkpot-archive/iplinux-uclibc,kraj/uClibc,ysat0/uClibc,wbx-github/uclibc-ng,OpenInkpot-archive/iplinux-uclibc,waweber/uclibc-clang,ndmsystems/uClibc,groundwater/uClibc,atgreen/uClibc-moxie,brgl/uclibc-ng,ffainelli/uClibc,klee/klee-uclibc,kraj/uClibc,groundwater/uClibc,ddcc/klee-uclibc-0.9.33.2,hjl-tools/uClibc,ndmsystems/uClibc,gittup/uClibc,ysat0/uClibc,majek/uclibc-vx32,foss-for-synopsys-dwc-arc-processors/uClibc,hwoarang/uClibc,ddcc/klee-uclibc-0.9.33.2,mephi42/uClibc,atgreen/uClibc-moxie,klee/klee-uclibc,ndmsystems/uClibc,ffainelli/uClibc,hwoarang/uClibc,ddcc/klee-uclibc-0.9.33.2,brgl/uclibc-ng,OpenInkpot-archive/iplinux-uclibc,m-labs/uclibc-lm32,ChickenRunjyd/klee-uclibc,wbx-github/uclibc-ng,ddcc/klee-uclibc-0.9.33.2,skristiansson/uClibc-or1k,klee/klee-uclibc,m-labs/uclibc-lm32,waweber/uclibc-clang,kraj/uClibc,groundwater/uClibc,czankel/xtensa-uclibc,groundwater/uClibc,hwoarang/uClibc,foss-xtensa/uClibc,majek/uclibc-vx32,kraj/uclibc-ng,skristiansson/uClibc-or1k,ffainelli/uClibc,brgl/uclibc-ng,kraj/uclibc-ng,hjl-tools/uClibc,wbx-github/uclibc-ng,gittup/uClibc,m-labs/uclibc-lm32,gittup/uClibc,ChickenRunjyd/klee-uclibc,kraj/uclibc-ng,ffainelli/uClibc,skristiansson/uClibc-or1k,kraj/uClibc,mephi42/uClibc,czankel/xtensa-uclibc,ysat0/uClibc,ysat0/uClibc,OpenInkpot-archive/iplinux-uclibc,majek/uclibc-vx32,hwoarang/uClibc,hjl-tools/uClibc,kraj/uclibc-ng