aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/script_ops.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-04-22 16:19:51 +0800
committerfanquake <fanquake@gmail.com>2020-04-22 16:40:32 +0800
commitc90a9e6fffa73707b6fcd4c39c39b2fc5aaf8398 (patch)
tree7ac0ff2ab54772265ecf30aa2377d89152f9c763 /src/test/fuzz/script_ops.cpp
parent7d1a3bda21214b119c0e6380927d451454669f9f (diff)
parent8334ee31f868f0f9baf0920d14d20174ed889dbe (diff)
Merge #18713: scripts: Add MACHO stack canary check to security-check.py
8334ee31f868f0f9baf0920d14d20174ed889dbe scripts: add MACHO LAZY_BINDINGS test to test-security-check.py (fanquake) 7b99c7454cdb74cd9cd7a5eedc2fb9d0a19df456 scripts: add MACHO Canary check to security-check.py (fanquake) Pull request description: 7b99c7454cdb74cd9cd7a5eedc2fb9d0a19df456 uses `otool -Iv` to check for `___stack_chk_fail` in the macOS binaries. Similar to the [ELF check](https://github.com/bitcoin/bitcoin/blob/master/contrib/devtools/security-check.py#L105). Note that looking for a triple underscore prefixed function (as opposed to two for ELF) is correct for the macOS binaries. i.e: ```bash otool -Iv bitcoind | grep chk 0x00000001006715b8 509 ___memcpy_chk 0x00000001006715be 510 ___snprintf_chk 0x00000001006715c4 511 ___sprintf_chk 0x00000001006715ca 512 ___stack_chk_fail 0x00000001006715d6 517 ___vsnprintf_chk 0x0000000100787898 513 ___stack_chk_guard ``` 8334ee31f868f0f9baf0920d14d20174ed889dbe is a follow up to #18295 and adds test cases to `test-security-check.py` that for some reason I didn't add at the time. I'll sort out #18434 so that we can run these tests in the CI. ACKs for top commit: practicalswift: ACK 8334ee31f868f0f9baf0920d14d20174ed889dbe: Mitigations are important. Important things are worth asserting :) jonasschnelli: utACK 8334ee31f868f0f9baf0920d14d20174ed889dbe. Tree-SHA512: 1aa5ded34bbd187eddb112b27278deb328bfc21ac82316b20fab6ad894f223b239a76b53dab0ac1770d194c1760fcc40d4da91ec09959ba4fc8eadedb173936a
Diffstat (limited to 'src/test/fuzz/script_ops.cpp')
0 files changed, 0 insertions, 0 deletions