[Bug 1507] [PATCH] ldd segfault fix

bugzilla at busybox.net bugzilla at busybox.net
Fri May 21 11:36:17 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=1507

--- Comment #5 from Natanael Copa <natanael.copa at gmail.com>  ---
(In reply to comment #4)

>              }
>          }
> -        if (newlib == NULL)
> +        if (newlib == NULL) {
>              newlib = malloc(sizeof(struct library));
> +            if (newlib)
> +                newlib->next = NULL;
> +        }
> 
> >>> why this one  ? why do you need to initialise the next field...
> >>> if !newlib, we returns NULL anyway, so does it matter to set next ?
> >>> is this change actually required to fix the segfault you have seen ?
> >>> it seems not

Good question. I don't remember. I think you are right. probably not needed.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list