Adding SAN option to CMakeLists.txt, to make it easier to use clang's address/undefined behavior sanitizer on codebase

Fixing overflow issue on extreme colors in color_distance().
Explicitly disabling unaligned addressing in miniz and transcoder when UBSAN is enabled
Disabling a needless optimization in transcoder causing ubsan issues (that could have easily been worked around in a different way, but it was an unnecessary optimization to begin with)
Rebuild wasm builds
This commit is contained in:
Richard Geldreich
2022-02-24 19:45:01 -05:00
parent 44e1bcd3e1
commit 7a2094b807
9 changed files with 47 additions and 15 deletions