summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2024-10-22 00:28:19 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-01-21 05:02:38 +0000
commitde06288019e62ee563d6958fb0fb7d0ffb8a2e62 (patch)
tree75f586dc73aebf20ac17666f3e6fbb65380fc342 /BaseTools/Source/Python
parent8d0e23d998e6181b3ba032bfc7e3217f8c396c69 (diff)
downloadedk2-de06288019e62ee563d6958fb0fb7d0ffb8a2e62.zip
edk2-de06288019e62ee563d6958fb0fb7d0ffb8a2e62.tar.gz
edk2-de06288019e62ee563d6958fb0fb7d0ffb8a2e62.tar.bz2
UnitTestFrameworkPkg: Use /MTd and enable Address Sanitizers
* Update host based unit test VS20xx builds to use /MTd instead of /MT to enable use of debug libraries for host based unit tests. * Enable /fsanitize=address for host based unit test VS2019 builds * Enable /fsanitize=address for host based unit test VS2022 builds * Enable -fsanitize=address for host based unit test GCC builds * Add UNIT_TESTING_ADDRESS_SANITIZER_ENABLE define that is set to TRUE by default so it is always enabled, but can be set to FALSE to temporarily disable during development/debug of unit tests. * Add address sanitizer information to ReadMe.md Enabling the Address Sanitizer can detect double frees, buffer overflow, buffer underflow, access to invalid addresses, and various exceptions. These can be detected in both the unit test case sources as well as the code under test. Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions