Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.507 (Entity 5.507) From: ghudson@mit.edu Subject: git commit RT-Send-CC: X-RT-Original-Encoding: iso-8859-1 Content-Length: 676 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) https://github.com/krb5/krb5/commit/f5bec0484b649e1114bdfa915d81cac9f2eca921 Author: Greg Hudson Commit: f5bec0484b649e1114bdfa915d81cac9f2eca921 Branch: krb5-1.13 src/include/port-sockets.h | 5 +++-- src/lib/krb5/os/net_write.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)