]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: check bounds of rcode stats counter index (safe right now)
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 11 Feb 2025 09:19:29 +0000 (10:19 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 11 Feb 2025 09:35:20 +0000 (10:35 +0100)
commit5280f0038ff22a7856e12bef1c8b2aba8caffdd2
treec838b7c5b57c41f7f1da1d65909fc711b14d8b99
parent6df71bc580dffd9d7aa3e38ee191d1910b6b4282
rec: check bounds of rcode stats counter index (safe right now)

Safe right now as LWResult::d_rcode gets assigned from the 4 bit
rcode in the header.  But that might change one day. I'd rather
make LWResult::d_rcode an uint8_t, but that causes a conflict with
the OOB resolving code that does not make a difference between res
and d_rcode.
pdns/recursordist/lwres.hh
pdns/recursordist/rec-tcounters.hh
pdns/recursordist/syncres.cc