From 9e5fa399eea5152a451753f1db68dec46537447c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 29 Aug 2016 15:50:44 +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 5b1cd1c1b20d..bdafa3a80c84 100644 --- a/modules/remotebackend/httpconnector.cc +++ b/modules/remotebackend/httpconnector.cc @@ -397,7 +397,6 @@ int HTTPConnector::recv_message(Json& 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.