Whamcloud - gitweb
libext2fs: fix filesystems larger than 2GB on Windows
authorSteffen Kieß <kiess@ki4.de>
Mon, 17 Apr 2023 09:47:56 +0000 (11:47 +0200)
committerSteffen Kieß <kiess@ki4.de>
Mon, 17 Apr 2023 09:47:56 +0000 (11:47 +0200)
commit7c4af8b07f77f909744b0ee77659e10246df8cc0
treeaa5c95eedd260dd88a63a38ab402285a6352e401
parent25ad8a431331b4d1d444a70b6079456cc612ac40
libext2fs: fix filesystems larger than 2GB on Windows

SetFilePointer requires the upper 32 bit of the position to be passed
separately, which the code did not do, causing the position to be
interpreted as a 32-bit value. Use SetFilePointerEx instead and pass the
entire 64-bit value.

Signed-off-by: Steffen Kieß <kiess@ki4.de>
lib/ext2fs/windows_io.c