[PATCH] Fix segfault in getprotobyname()
Rob Landley
rob at landley.net
Wed Apr 18 16:26:45 UTC 2007
On Wednesday 18 April 2007 5:28 am, Atsushi Nemoto wrote:
> I found ping (in busybox) segfault when linked with uClibc-0.9.29_rc1.
>
> The getprotoent_r() in uClibc does not return proper error value if it
> failed (due to wrong name or missing /etc/protocols file, etc). Then
> NULL will be passed to strcmp() and crash.
Applied.
Rob
--
Penguicon 5.0 Apr 20-22, Linux Expo/SF Convention. Bruce Schneier, Christine
Peterson, Steve Jackson, Randy Milholland, Elizabeth Bear, Charlie Stross...
More information about the uClibc
mailing list