Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/nodejs/lib/thrift/json_protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ TJSONProtocol.prototype.readMessageBegin = function() {
}

if (openBracketCount !== 0) {
throw new Error("Malformed JSON input, mismatched backets");
// Missing closing bracket. Can be buffer underrun.
throw new InputBufferUnderrunError();
}

//Reconstitute the JSON object and conume the necessary bytes
Expand Down