diff options
author | dormando <dormando@rydia.net> | 2019-08-29 14:10:44 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2019-08-29 14:10:44 -0700 |
commit | 554b56687a19300a75ec24184746b5512580c819 (patch) | |
tree | 30340395ab6b75368151a79cfb5128213e40ba36 /crawler.h | |
parent | 938154dfe060f7ab519f5fe88622b6ac1859faab (diff) | |
download | memcached-554b56687a19300a75ec24184746b5512580c819.tar.gz |
fix strncpy call to avoid ASAN violation1.5.17
Ensure we're only reading to the size of the smallest buffer, since
they're both on the stack and could potentially overlap. Overlapping is
defined as ... undefined behavior. I've looked through all available
implementations of strncpy and they still only copy from the first \0
found.
We'll also never read past the end of sun_path since we _supply_
sun_path with a proper null terminator.
Diffstat (limited to 'crawler.h')
0 files changed, 0 insertions, 0 deletions