-fsanitize=address duplicates inline strings. Is this intended behavior or a compiler issue?

126 Views Asked by At

In our codebase we expect that strings only exist once in the compiled binary. I observe that

-fsanitize=address

can generate duplicated strings in the executable. This breaks our code.

The following godbolt example demonstrates the issue https://godbolt.org/z/G5edcnr5e.

My question is if this an intended behavior or a compiler issue?

0

There are 0 best solutions below