Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
[#69] Fix potential out of bound write to p->buf
Browse files Browse the repository at this point in the history
As reported via #69,
there is a slight chance that 1 byte can overflow parser->buf[STACK_MAX]
when adding the extra '\0'

Added the macro `HTP_SET_BUF(CH)` which does proper bounds checks before
writing the final '\0'.
  • Loading branch information
NathanFrench committed Jan 3, 2018
1 parent 933febf commit 8b68657
Showing 1 changed file with 146 additions and 181 deletions.
Loading

0 comments on commit 8b68657

Please sign in to comment.