Mercurial > hg
changeset 40810:0fecf70fa8d4
fuzz: grep away HAVE_GETC_UNLOCKED in pyconfig.h to avoid msan badness
Per discussion with Greg Smith and the patches on
https://bugs.python.org/issue35214. This, combined with the previous
patch, fixes msan builds on oss-fuzz.
Differential Revision: https://phab.mercurial-scm.org/D5363
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 03 Dec 2018 18:07:09 -0500 |
parents | 177b47ce0375 |
children | e13ab4acf555 |
files | contrib/fuzz/Makefile |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/fuzz/Makefile Tue Nov 13 09:19:05 2018 -0500 +++ b/contrib/fuzz/Makefile Mon Dec 03 18:07:09 2018 -0500 @@ -72,7 +72,9 @@ # TODO use the $OUT env var instead of hardcoding /out /out/sanpy/bin/python: - cd /Python-2.7.15/ && ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LDFLAGS=$$PYLDFLAGS && ASAN_OPTIONS=detect_leaks=0 make && make install + cd /Python-2.7.15/ ; ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LDFLAGS=$$PYLDFLAGS + cd /Python-2.7.15/ ; grep -v HAVE_GETC_UNLOCKED < pyconfig.h > tmp && mv tmp pyconfig.h + cd /Python-2.7.15/ ; ASAN_OPTIONS=detect_leaks=0 make && make install sanpy: /out/sanpy/bin/python