Hi Kevin,

how is HARDWIRED_ABSPATH config option set?

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;
>                 }
> -- 
> Kevin Day
> _______________________________________________
> uClibc mailing list
> uClibc@uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!                       
Jetzt informieren: http://www.gmx.net/de/go/freephone
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to