Having compiled the assembler and linker with CC="gcc -fsanitize-address-use-after-scope -fsanitize=undefined" CXX="g++ -fsanitize-address-use-after-scope -fsanitize=undefined" I saw many cases of code that has UB. I'm trying to fix most of them by a commit later today (assuming regression tests pass), but there are a few I haven't fixed yet. The ones most often hit are:
* Overflows in SDCCval.c
* Out-of-bounds array accesses in the ds390 port.
* An issue about reading an uninitialized bool in SDCCralloc.hpp (this one is most likely a false positive, IMO, we're just copying a partially-initialized struct, and not really using that bool).
Related
Bugs:
#3631Commit: [r14260]
Commit: [r14261]
Last edit: Philipp Klaus Krause 2023-08-03