Code

Fix "Out of memory? mmap failed" for files larger than 4GB on Windows
authorIan McLean <ian.mclean@gmail.com>
Thu, 20 May 2010 18:57:51 +0000 (20:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 May 2010 23:11:06 +0000 (16:11 -0700)
commit60890cc60ccfc7000791a47f1f3d69fdb8884dd7
tree3dd29923f4bbf988e53883eb65394e6490d47f66
parentcc24a1d809c75f0b6e5b1e56134b5127196bb2fb
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>
compat/win32mmap.c