From: Remi Gacogne Date: Mon, 29 Aug 2016 15:10:09 +0000 (+0200) Subject: auth: Fix a stack-based off-by-one write in the HTTP remote backend X-Git-Tag: auth-3.4.11~7^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4631%2Fhead;p=thirdparty%2Fpdns.git auth: Fix a stack-based off-by-one write in the HTTP remote backend Reported by mongo (thanks!). --- diff --git a/modules/remotebackend/httpconnector.cc b/modules/remotebackend/httpconnector.cc index 80c7549e37..1e732dc358 100644 --- a/modules/remotebackend/httpconnector.cc +++ b/modules/remotebackend/httpconnector.cc @@ -394,7 +394,6 @@ int HTTPConnector::recv_message(rapidjson::Document &output) { throw NetworkError("EOF while reading"); if (rd<0) throw NetworkError(std::string(strerror(rd))); - buffer[rd] = 0; arl.feed(std::string(buffer, rd)); } // timeout occured.