]> granicus.if.org Git - pdns/commit
dnsdist: Use a separate string for the DoH query and response
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 25 Jun 2019 14:08:48 +0000 (16:08 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 8 Jul 2019 07:42:58 +0000 (09:42 +0200)
commit246ff31f279b5dde43e9300e96145e062210cf70
tree7a485d10457dcf387079607068d23334f0234538
parent0956c5c52b49e33e4d179173e1d3b24eb08d6165
dnsdist: Use a separate string for the DoH query and response

In rare cases, the responder thread might get a response _before_
the send() call of the DoH client thread has returned, resulting
in ASAN reporting a use-after-free since the response was written
into the now useless query object.
pdns/dnsdist.cc
pdns/dnsdistdist/doh.cc
pdns/doh.hh