Skip to content
Merged
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 src/reqs.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,8 @@ static int pull_client_data_chunked (struct conn_s *connptr) {
}

chunklen = strtol (buffer, (char**)0, 16);
if (chunklen < 0) goto ERROR_EXIT;
/* prevent negative or huge values causing overflow */
if (chunklen < 0 || chunklen > 0x0fffffff) goto ERROR_EXIT;

if (pull_client_data (connptr, chunklen+2) < 0)
goto ERROR_EXIT;
Expand Down
Loading