Add Address Sanitizer support to MSVC and CMake (#182)

* msvc: Add Address Sanitizer

https://devblogs.microsoft.com/cppblog/addresssanitizer-asan-for-windows-with-msvc/

* cmake: Add Address Sanitizer

* docs: Update ReadME

* see if we can replicate the test failure

* windows fixes maybe

* cmake: Compile with gcc and clang (only coverage on

* hacky try again

* clean up

* fix clang issues

* linting

Co-authored-by: water <awaterford111445@gmail.com>
This commit is contained in:
Tyler Wilding
2021-01-04 23:32:51 -05:00
committed by GitHub
parent 3c2faed367
commit 69f7f46477
12 changed files with 153 additions and 90 deletions
+3 -3
View File
@@ -349,7 +349,7 @@ s32 cvt_float(float x, s32 precision, s32* lead_char, char* buff_start, char* bu
value = (char)rounder;
} else if (!(ru32 >> 31)) { // sign bit
value = 0;
assert(false); // not sure what happens here.
// assert(false); // not sure what happens here.
} else {
value = -1; // happens on NaN's
}
@@ -396,7 +396,7 @@ s32 cvt_float(float x, s32 precision, s32* lead_char, char* buff_start, char* bu
value = (char)next_int;
} else if (!(ru32 >> 0x1f)) {
value = 0;
assert(false); // not sure what happens here.
// assert(false); // not sure what happens here.
} else {
value = -1; // happens on NaN's
}
@@ -1085,4 +1085,4 @@ s32 format_impl(uint64_t* args) {
assert(false); // ??????
return 7;
}
}