Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
httpc: fix the stack corruption (clang sanitizer)
  • Loading branch information
perexg committed Aug 19, 2016
1 parent 2c9c3ad commit b1ef757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpc.c
Expand Up @@ -927,7 +927,7 @@ http_client_run0( http_client_t *hc )
return res;
}

buf = alloca(hc->hc_io_size);
buf = alloca(hc->hc_io_size + 1);
if (!hc->hc_in_data && !hc->hc_in_rtp_data && hc->hc_rpos > 3) {
hc->hc_rbuf[hc->hc_rpos] = '\0';
if (hc->hc_version == RTSP_VERSION_1_0 && hc->hc_rbuf[0] == '$')
Expand Down

0 comments on commit b1ef757

Please sign in to comment.