[PATCH] Fix 2 possible SEGVs in tftp client

KRONSTORFER Horst Horst.KRONSTORFER at frequentis.com
Fri Apr 21 14:04:10 UTC 2006


hi!

attached patch fixes 2 possible segfaults in tftp.c:

1) when both -l and -r are omitted, a null pointer is passed for 'remotefile'
to tftp() which doesn't expect a null pointer for this argument.

2) when hostname/ipaddr is omitted, a null pointer is passed for 'name'
to gethostbyname() (via xgethostbyname()) which doesn't expect a null
pointer for this argument.

-h





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20060421/8a027a4c/attachment-0002.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tftp.patch
Type: application/octet-stream
Size: 793 bytes
Desc: tftp.patch
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060421/8a027a4c/attachment.obj 


More information about the busybox mailing list