]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix 64-bit Windows socket write error handling krb5-1.13
authorGreg Hudson <ghudson@mit.edu>
Thu, 4 Oct 2018 22:10:48 +0000 (18:10 -0400)
committerGreg Hudson <ghudson@mit.edu>
Sun, 28 Oct 2018 23:57:28 +0000 (19:57 -0400)
commitf5bec0484b649e1114bdfa915d81cac9f2eca921
treec459252d201e9e3d320f4a781a43c9e83116b52c
parentcfa1552d8bb8eedda94153dfb9f0ad154f01ba66
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.

(cherry picked from commit d98c3238894986765631f1e556f29ca817988816)

ticket: 8746
version_fixed: 1.13.8
src/include/port-sockets.h
src/lib/krb5/os/net_write.c