On 3/30/2011 3:26 AM, Timo Teräs wrote:
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.

Yes indeed. I have applied it.


Thanks, Peter
-------- Original-Nachricht --------
Datum: Tue, 29 Mar 2011 23:15:18 -0500
Von: Kevin Day<[email protected]>
An: uClibc<[email protected]>
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
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to