This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
The function htparser_run
may have a out of bounds memory write
#69
Labels
Although there had judged upper limit
https://github.com/criticalstack/libevhtp/blob/bc52552641ef9d01713c6d8e9b41aa1c089091fe/parser.c#L728
But, if
p->buf_idx
arrival at (PARSER_STACK_MAX-1
) value, The following will using two characters of space, then have a out of bounds memory write.https://github.com/criticalstack/libevhtp/blob/bc52552641ef9d01713c6d8e9b41aa1c089091fe/parser.c#L776-L777
Proposed using
if (p->buf_idx >= PARSER_STACK_MAX-1)
replace.The text was updated successfully, but these errors were encountered: