Ronald Maeder writes:
Ronald Maeder writes:

Hi Erik,

Thanks for all your great work.  I found a set of bugs in
resolv.c .  Basically, there is code that looks like:

        BIGLOCK;
        __nameserversXX=__nameservers;
        __nameserverXX=__nameserver;
        BIGUNLOCK;
        i = __dns_lookup(dname, type, __nameserversXX, __nameserverXX, &packet, &a);

which is a problem because the declarations are

int __nameservers;
char * __nameserver[MAX_SERVERS];
int __searchdomains;
char * __searchdomain[MAX_SEARCH];

so you can see that __nameserver is a pointer.  Copying the
pointer to __nameserverXX doesn't protect the global variable
space.  I have attached a patch and the new file.  I hope you
will incorporate these bug fixes.  I spent quite a bit of time
tracking them down.

Many thanks,

Ron

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