[ASan] Fix off-by-one in strncat overlap check (#237014)

`INTERCEPTOR(strncat)` writes `from_length + 1` bytes starting at
`to + to_length`, so the resulting destination string occupies
`to_length + from_length + 1` bytes.

Since 33824c54f616, `CHECK_RANGES_OVERLAP` passed
`to_length + copy_length + 1` as the destination length instead. When
`from_length < size`, `copy_length` (`Min(size, from_length + 1)`) is
already `from_length + 1`, checking 1 byte past the written trailing NUL
and triggering a false-positive `strncat-param-overlap` report when
`from` starts right after it.

Assisted-by: Gemini
GitOrigin-RevId: 01a3acccacc2aca5840af9cf0c62dc1d8c4c7dfa
2 files changed