]> git.ipfire.org Git - thirdparty/squid.git/commit
FTP: Avoid null dereferences when handling ftp_port traffic (#2172)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Tue, 2 Sep 2025 19:06:12 +0000 (19:06 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 3 Sep 2025 11:46:19 +0000 (11:46 +0000)
commitb65d815a1907e9313baca7f15071af28ef53a9aa
tree829637ffae3df01484cfb0035739c49ddf4e80c3
parent37a240ff3cc91df6a302c0284685e614902fe904
FTP: Avoid null dereferences when handling ftp_port traffic (#2172)

`strchr` may return null if a deliminator is not found. Likewise,
if an `Http::HdrType::FTP_REASON` string is not found, nullptr would
be used in the %s formatter, leading to UB.
src/ftp/Parsing.cc
src/servers/FtpServer.cc