Mercurial > hg
comparison .hgtags @ 43149:2a0774e9d2a8
dirs: fix trivial over-read of input data
This code, introduced in 8c0a7eeda06d, was intentionally over-reading
an input string to avoid getting a shared string object for a one-byte
input. Unfortunately with an empty input (like in the case of a fuzzer
getting started) this was a trivial over-read and triggered an
AddressSanitizer failure.
I went out of my way to make sure the code still does the
copy-avoidance tricks. I don't think this change will cost us much
performance since the one-character strings should be cached
aggressively anyway.
Differential Revision: https://phab.mercurial-scm.org/D7030
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 08 Oct 2019 16:18:15 -0400 |
parents | d3b7d308a8f0 |
children | 9086071498dd |
comparison
equal
deleted
inserted
replaced
43148:843da18386d5 | 43149:2a0774e9d2a8 |
---|