]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
64-bit cleanness: fix integer types in winsftp.c.
authorSimon Tatham <anakin@pobox.com>
Sat, 2 Apr 2016 13:11:18 +0000 (14:11 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 2 Apr 2016 13:23:07 +0000 (14:23 +0100)
commita5d7a6c10285540371e84b495131a0ee938776e4
treef5ac8c2c8c2b72387ece12294ae55734bbd344bc
parent83746d7236e3109b1c5009262cf2b232583ffbba
64-bit cleanness: fix integer types in winsftp.c.

We were calling Windows file-handling API functions GetFilesize and
SetFilePointer, each of which returns two halves of a large integer by
writing the high half through a pointer, with pointers to the wrong
integer types. Now we're always passing the exact type defined in the
API, and converting after the fact to our own uint64 type, so this
should avoid any risk of wrong-sized pointers.
windows/winsftp.c