Bugs, memory-safety hazards, undefined behavior, API mismatches, and dead code discovered while developing and running the GoogleTest suite (test/bsio/) under GCC, Clang --coverage/gcov/llvm-cov, AddressSanitizer + LeakSanitizer + UndefinedBehaviorSanitizer (ASan/LSan/UBSan), and MemorySanitizer (MSan). Per task instructions, none of these bugs have been fixed in src/bsio/.
| ID | Severity | Location | Function(s) | Issue | Detected By |
|---|---|---|---|---|---|
| BUG-01 | Critical | src/bsio/mbbs_misc.c:160-163, 314 |
mbbs_pngdatabufsz, mbbs_getpngdataptrs |
png_snspad omitted from buffer size calculation -> heap-buffer-overflow |
Unit test + ASan |
| BUG-02 | Critical | src/bsio/mbbs_memalloc.c:62-67, 94-99 |
mbbs_memalloc, mbbs_memallocsh |
Tracks object count *bufsz only, not objsz/bytes -> heap-buffer-overflow |
ASan |