mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:51:09 +01:00
The current behavior hits UBSAN and ASAN issues. Note, `RequiresNullTerminator` is already set to `false` in `source_buffer.cpp`; setting it in `compile_helper.cpp` is making things more consistent. The related logic is an [assert fail](https://github.com/llvm/llvm-project/blob/main/llvm/lib/Support/MemoryBuffer.cpp#L52). This was fuzzer-discovered.