ws2_32: Fix allocating a hostent with no h_aliases list. (try 2)
Erich Hoover
ehoover at mines.edu
Mon Dec 14 09:37:12 CST 2009
Real Name:
Erich Hoover
Description:
The attached patch fixes Bug #20995, which was introduced by
commit 355818ae1e1222bffab7d014a952e4f70e3623d0. When an application
requests the local IP addresses using gethostbyname() the returned
hostent has an empty h_aliases list. Without this patch applications
will crash if they examine the h_aliases list without first ensuring
that h_aliases is non-NULL. This version differs from the last in
that it does not include a check on the validity of the internally
generated "list length" parameters and instead provides additional
documentation on the proper calling procedure.
Changelog:
ws2_32: Fix allocating a hostent with no h_aliases list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ws2_32-Fix-allocating-a-hostent-with-no-h_aliases-li.patch
Type: text/x-patch
Size: 3740 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091214/9977361e/attachment.bin>
More information about the wine-patches
mailing list