]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix 64-bit Windows socket write error handling 855/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 4 Oct 2018 22:10:48 +0000 (18:10 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 17 Oct 2018 16:38:22 +0000 (12:38 -0400)
commitd98c3238894986765631f1e556f29ca817988816
treeef873610094cb991bcc1e6996eb71019f3808c29
parent586e901145c2b874828748610bf95aa32b281fc4
Fix 64-bit Windows socket write error handling

Add casts to ensure that the result type of SOCKET_WRITEV() on Windows
can represent -1.  Otherwise it will be treated as 2^32-1 when cast to
ssize_t on 64-bit Windows, which can lead to crashes in
krb5_sendto_kdc().  Reported by Puran Chand.

ticket: 8746 (new)
tags: pullup
target_version: 1.13-next
src/include/port-sockets.h
src/lib/krb5/os/net_write.c