]> git.ipfire.org Git - thirdparty/squid.git/commit
Use SBuf for Fs::Ufs::RebuildState file paths (#1063)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 8 Jun 2022 16:23:59 +0000 (16:23 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 8 Jun 2022 18:17:38 +0000 (18:17 +0000)
commit7c964f99be79340e07b4c805c3e0a3c4346ad010
tree95e59c836a0d67e9301093b79da38d85a4c02885
parentc3f0885dd9632e206fbcc78348b567d360ee1ee0
Use SBuf for Fs::Ufs::RebuildState file paths (#1063)

In theory, a combination of a non-terminating-on-overflows snprintf()
and an incorrectly guessed MAXPATHLEN (or a cache_dir root path being at
the edge of a correctly guessed MAXPATHLEN) may result in non-terminated
fullpath. Use SBuf to avoid these particular headaches.

Detected by Coverity. CID 1461166: Copy of overlapping memory
(OVERLAPPING_COPY).
src/fs/ufs/RebuildState.cc
src/fs/ufs/RebuildState.h