]> granicus.if.org Git - pdns/commit
dnsdist: Don't access the TCP buffer vector past its size
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jun 2018 22:10:13 +0000 (00:10 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jun 2018 22:10:36 +0000 (00:10 +0200)
commit60a518c8c246f43c53694160ebb7ca8b8b5c6346
tree38cc9fbb519ee63d55a4de6fe16a4447ccad516b
parentc78d2677a115116cbbb5da8fc408d8dc329cf69d
dnsdist: Don't access the TCP buffer vector past its size

The required memory has been reserve()'d, but we are not allowed to
access it directly, and it breaks when compiled with the following
flag, checking any access to containers as if .at() were used:

-D_GLIBCXX_ASSERTIONS
pdns/dnsdist-tcp.cc