]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 22 Aug 2022 15:09:12 +0000 (03:09 +1200)
commit8bb78397f9ae02a9b4bd0d18907b25a5d04108f2
treed5941f11365d2ae72bddb1b0682422ade559a94a
parent617ce5838aa6bcb437b3f9ecc8bbfb5c17c44ee2
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