mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-06 22:55:49 -04:00
bb11445 - fixing edge case where a null terminator was unintentionally written into an adjacent buffer.
This commit is contained in:
@@ -718,6 +718,8 @@ static void handle_df(const yystype *tokens, size_t start, struct decode_result
|
||||
if(!str)
|
||||
return;
|
||||
len = strlen(str);
|
||||
if(!len)
|
||||
return;
|
||||
clast = str[len-1] - '0';
|
||||
|
||||
str[len-1] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user