From a6292e600bf04b140583766f6948777e345e385c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 29 Aug 2016 17:10:09 +0200 Subject: [PATCH] auth: Fix a stack-based off-by-one write in the HTTP remote backend Reported by mongo (thanks!). --- modules/remotebackend/httpconnector.cc | 1 - 1 file changed, 1 deletion(-) 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. -- 2.47.2