git-commit-vandalism/compat/win32
Jeff King 50a6c8efa2 use st_add and st_mult for allocation size computation
If our size computation overflows size_t, we may allocate a
much smaller buffer than we expected and overflow it. It's
probably impossible to trigger an overflow in most of these
sites in practice, but it is easy enough convert their
additions and multiplications into overflow-checking
variants. This may be fixing real bugs, and it makes
auditing the code easier.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-02-22 14:51:09 -08:00
..
alloca.h mingw: activate alloca 2014-04-09 10:08:35 -07:00
dirent.c Win32: Unicode file name support (dirent) 2014-07-15 11:19:09 -07:00
dirent.h Win32: Unicode file name support (dirent) 2014-07-15 11:19:09 -07:00
pthread.c compat/win32/pthread.c: Fix a sparse warning 2013-04-28 12:26:45 -07:00
pthread.h compat/win32/pthread.h: Add an pthread_key_delete() implementation 2012-04-11 11:08:43 -07:00
syslog.c use st_add and st_mult for allocation size computation 2016-02-22 14:51:09 -08:00
syslog.h mingw: implement syslog 2010-11-04 16:53:49 -07:00