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 Oct 6, 2016
1 parent 6e5caeb commit 9e5fa39
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 @@ -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.
Expand Down

0 comments on commit 9e5fa39

Please sign in to comment.