mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Fix global buffer over-read in POP3 analyzer
Report and patch by Justin Azoff
This commit is contained in:
parent
b749dda520
commit
280bf56786
1 changed files with 1 additions and 1 deletions
|
@ -864,7 +864,7 @@ int POP3_Analyzer::ParseCmd(std::string cmd)
|
|||
if ( cmd.size() == 0 )
|
||||
return -1;
|
||||
|
||||
for ( int code = POP3_CMD_OK; code <= POP3_CMD_END; ++code )
|
||||
for ( int code = POP3_CMD_OK; code < POP3_CMD_END; ++code )
|
||||
{
|
||||
char c = cmd.c_str()[0];
|
||||
if ( c == '+' || c == '-' )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue