Mercurial > hgrepos > Python2 > PyMuPDF
diff mupdf-source/scripts/wrap/__main__.py @ 31:baeb8bdeff3a
Fortify sources using _FORTIFY_SOURCE=3 and also apply -fno-delete-null-pointer-checks.
See: https://github.com/ossf/wg-best-practices-os-developers/issues/659.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 21 Sep 2025 13:11:30 +0200 |
| parents | 59f1bd90b2a0 |
| children | 72c1b70d4f5c |
line wrap: on
line diff
--- a/mupdf-source/scripts/wrap/__main__.py Fri Sep 19 19:59:44 2025 +0200 +++ b/mupdf-source/scripts/wrap/__main__.py Sun Sep 21 13:11:30 2025 +0200 @@ -1541,6 +1541,8 @@ dir_so_flags = os.path.basename( build_dirs.dir_so).split( '-') cflags = os.environ.get('XCXXFLAGS', '') + if os.environ.get('EXTRA_CHECKS', '1') != '0': + cflags += ' -fno-delete-null-pointer-checks' windows_build_type = build_dirs.windows_build_type() so_version = get_so_version( build_dirs)
