]> git.ipfire.org Git - thirdparty/squid.git/commit
DNS: fix RRPack memcpy to copy rdata buffer, not the pointer (#2189)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Mon, 8 Sep 2025 12:33:38 +0000 (12:33 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 8 Sep 2025 13:13:52 +0000 (13:13 +0000)
commitd58e6492a952c0d21a921270ca03e7efa3f1f7d2
tree6bf548154285947162ae6de05587ba17fbc38ace
parent4e039643bdb111740350e3f6410abab6a7f8765e
DNS: fix RRPack memcpy to copy rdata buffer, not the pointer (#2189)

Fortunately, broken code had no effect because its only caller --
rfc2671RROptPack() that sends EDNS option -- always supplies zero-size
rdata.

Also clarified rfc1035QueryUnpack() implementation using sizeof().
src/dns/rfc1035.cc