mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
Merge branch 'jk/asan-bonanza'
Various issues detected by Asan have been corrected. * jk/asan-bonanza: t: enable ASan's strict_string_checks option fsck: avoid parse_timestamp() on buffer that isn't NUL-terminated fsck: remove redundant date timestamp check fsck: avoid strcspn() in fsck_ident() fsck: assert newline presence in fsck_ident() cache-tree: avoid strtol() on non-string buffer Makefile: turn on NO_MMAP when building with ASan pack-bitmap: handle name-hash lookups in incremental bitmaps compat/mmap: mark unused argument in git_munmap()
This commit is contained in:
@@ -1411,12 +1411,18 @@ if host_machine.system() == 'windows'
|
||||
libgit_c_args += '-DUSE_WIN32_MMAP'
|
||||
else
|
||||
checkfuncs += {
|
||||
'mmap' : ['mmap.c'],
|
||||
# provided by compat/mingw.c.
|
||||
'unsetenv' : ['unsetenv.c'],
|
||||
# provided by compat/mingw.c.
|
||||
'getpagesize' : [],
|
||||
}
|
||||
|
||||
if get_option('b_sanitize').contains('address')
|
||||
libgit_c_args += '-DNO_MMAP'
|
||||
libgit_sources += 'compat/mmap.c'
|
||||
else
|
||||
checkfuncs += { 'mmap': ['mmap.c'] }
|
||||
endif
|
||||
endif
|
||||
|
||||
foreach func, impls : checkfuncs
|
||||
|
||||
Reference in New Issue
Block a user