Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SECURITY: disable build of filter_neon.S on arm
This fixes the bug #505 "libpng does not support PAC/BTI on aarch64 targets" which arises because the build mechanisms (both cmake and configure) assemble arm/filter_neon.S even though it ends up completely empty. The empty file effectively poisons the so that the PAC/BTI support gets disabled. The fix is minimal; it simply removes arm/filter_neon.S from the list of sources included in the build. Note that this was already done in cmake for MSVC - it's not clear whether this change was a partial fix for the same issue. The fix will cause attempts to use the assembler implementation to fail at build time. As described in PR506: #506 This should only cause problems with certain older GCC compilers and only then if someone tries to build with the assembler optimization enabled in which case the build probably had a security problem. QUESTION: does the PAC/BTI security issue affect 32-bit ARM? If not this change may might be an issue for someone given that filter_neon.S would apparently be safe on 32-bit. Nevertheless this PR is safe because it fails in a noisy way and is easy to undo. TESTING: pull the changes then type "autoreconf" if using configure (not required for cmake). Signed-off-by: John Bowler <jbowler@acm.org>
- Loading branch information