summaryrefslogtreecommitdiff
path: root/crawler.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2019-08-29 14:10:44 -0700
committerdormando <dormando@rydia.net>2019-08-29 14:10:44 -0700
commit554b56687a19300a75ec24184746b5512580c819 (patch)
tree30340395ab6b75368151a79cfb5128213e40ba36 /crawler.h
parent938154dfe060f7ab519f5fe88622b6ac1859faab (diff)
downloadmemcached-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