Mercurial > hgrepos > Python2 > PyMuPDF
diff pipcl.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 | dcabf2733f0f |
| children | 72c1b70d4f5c |
line wrap: on
line diff
--- a/pipcl.py Fri Sep 19 19:59:44 2025 +0200 +++ b/pipcl.py Sun Sep 21 13:11:30 2025 +0200 @@ -1767,6 +1767,8 @@ general_flags += ' -g' if optimise: general_flags += ' -O2 -DNDEBUG' + if os.environ.get('EXTRA_CHECKS', '1') != '0': + general_flags += ' -fno-delete-null-pointer-checks' py_limited_api3 = f'-DPy_LIMITED_API={py_limited_api2}' if py_limited_api2 else ''
