author | Ian McLean <ian.mclean@gmail.com> | |
Thu, 20 May 2010 18:57:51 +0000 (20:57 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 20 May 2010 23:11:06 +0000 (16:11 -0700) | ||
commit | 60890cc60ccfc7000791a47f1f3d69fdb8884dd7 | |
tree | 3dd29923f4bbf988e53883eb65394e6490d47f66 | tree | snapshot |
parent | cc24a1d809c75f0b6e5b1e56134b5127196bb2fb | commit | diff |
Fix "Out of memory? mmap failed" for files larger than 4GB on Windows
The git_mmap implementation was broken for file sizes that wouldn't fit
into a size_t (32 bits). This was caused by intermediate variables that
were only 32 bits wide when they should be 64 bits.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The git_mmap implementation was broken for file sizes that wouldn't fit
into a size_t (32 bits). This was caused by intermediate variables that
were only 32 bits wide when they should be 64 bits.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/win32mmap.c | diff | blob | history |