Skip to content

Commit

Permalink
auth: Fix a stack-based off-by-one write in the HTTP remote backend
Browse files Browse the repository at this point in the history
Reported by mongo (thanks!).
  • Loading branch information
rgacogne committed Aug 29, 2016
1 parent 0e013c8 commit a6292e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/remotebackend/httpconnector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a6292e6

Please sign in to comment.