On 03/30/2011 01:24 PM, Peter Mazinger wrote: > how is HARDWIRED_ABSPATH config option set?
I'd say that most likely yes. :) But the fix below is still valid and should be applied, IMHO. > > Thanks, Peter > -------- Original-Nachricht -------- >> Datum: Tue, 29 Mar 2011 23:15:18 -0500 >> Von: Kevin Day <thekevin...@gmail.com> >> An: uClibc <uClibc@uclibc.org> >> Betreff: ldd segfaults on libdl.so for 0.9.32-rc3 because of if (*tmp) > >> The problem happens around utils/ldd.c:555: >> tmp = strrchr(interp_dir, '/'); >> if (*tmp) >> *tmp = '\0'; >> else { >> free(interp_dir); >> interp_dir = interp_name; >> } >> >> The *tmp is the culprit. >> If NULL is returned by strrchr(), then a segfault happens. >> >> Perhaps the following is what is intended? >> tmp = strrchr(interp_dir, '/'); >> if (tmp) >> *tmp = '\0'; >> else { >> free(interp_dir); >> interp_dir = interp_name; >> } _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc