1
0
mirror of https://github.com/git/git.git synced 2024-10-21 16:18:11 +02:00
git/compat
Johannes Schindelin b6b066adf9 winansi: avoid buffer overrun
When we could not convert the UTF-8 sequence into Unicode for writing to
the Console, we should not try to write an insanely-long sequence of
invalid wide characters (mistaking the negative return value for an
unsigned length).

Reported by Coverity.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-05-08 12:18:19 +09:00
..
nedmalloc compat: move strdup(3) replacement to its own file 2016-09-07 10:41:45 -07:00
poll
regex regex: fix a SIZE_MAX macro redefinition warning 2016-06-06 19:22:00 -07:00
vcbuild
win32 Merge branch 'jk/push-client-deadlock-fix' 2016-05-18 15:11:46 -07:00
apple-common-crypto.h
basename.c
bswap.h
fopen.c
gmtime.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c mingw: avoid memory leak when splitting PATH 2017-05-08 12:18:19 +09:00
mingw.h mingw: intercept isatty() to handle /dev/null as Git expects it 2016-12-11 16:15:46 -08:00
mkdir.c
mkdtemp.c
mmap.c
msvc.c
msvc.h
obstack.c
obstack.h
pread.c
precompose_utf8.c typofix: assorted typofixes in comments, documentation and messages 2016-05-06 13:16:37 -07:00
precompose_utf8.h
qsort_s.c compat: add qsort_s() 2017-01-23 11:02:34 -08:00
qsort.c
setenv.c
sha1-chunked.c
sha1-chunked.h
snprintf.c
stat.c
strcasestr.c
strdup.c compat: move strdup(3) replacement to its own file 2016-09-07 10:41:45 -07:00
strlcpy.c
strtoimax.c
strtoumax.c
terminal.c
terminal.h
unsetenv.c
win32.h
win32mmap.c
winansi.c winansi: avoid buffer overrun 2017-05-08 12:18:19 +09:00