Re: [uclibc-ng-devel] [PATCH] ldso: exit if zalloc can't alloc memory

2017-04-11 Thread Waldemar Brodkorb
Hi Vineet, Vineet Gupta wrote, > _dl_zalloc callers don't check for allocaton failure. It kind of makes > sense since such early allocations are unlikely to fail, and even if > they do, ldso would segv anyways thus bringing the issue to attention. > > However there's a gcc nuance which led to thi

[uclibc-ng-devel] [PATCH] ldso: exit if zalloc can't alloc memory

2017-04-05 Thread Vineet Gupta
_dl_zalloc callers don't check for allocaton failure. It kind of makes sense since such early allocations are unlikely to fail, and even if they do, ldso would segv anyways thus bringing the issue to attention. However there's a gcc nuance which led to this patch. It seems gcc at -O2 (for DODEBUG