Files
codebase-memory-mcp/tests
Martin Vogel 2522a06c6d fix(discover): a short file name is read no further than its end
The Dockerfile-variant check read the character after "Dockerfile" /
"Containerfile" before it knew the name held that base, so every name
shorter than the base was read past its end. GCC's AddressSanitizer
caught it once the doc-link layer began asking the language of short
code file names (a.go): 27 to 51 suites aborted per Linux shard. The
base is compared first now.

The test passes each short name in a heap block of exactly its size;
under GCC ASan it fails without the fix (heap-buffer-overflow in
lang_dockerfile_variant).

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-11 22:11:56 +02:00
..
…