Skip to content

Commit 16ad3fd

Browse files
committed
skip elements-util test for _FORTIFY_SOURCE usage in release binaries
1 parent 4b1206f commit 16ad3fd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

contrib/devtools/security-check.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ def check_ELF_CONTROL_FLOW(binary) -> bool:
119119

120120
def check_ELF_FORTIFY(binary) -> bool:
121121

122-
# bitcoin-util does not currently contain any fortified functions
123-
if 'Bitcoin Core bitcoin-util utility version ' in binary.strings:
122+
# bitcoin-util and elements-util do not currently contain any fortified functions
123+
# (the utility binaries are intentionally kept minimal)
124+
if any('bitcoin-util utility version' in s for s in binary.strings):
124125
return True
125126

126127
chk_funcs = set()

0 commit comments

Comments
 (0)