mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix potential buffer overflow in match_and_replace()
This commit is contained in:
parent
7aa2d3fee2
commit
62a4a93dec
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ static void replace_substring(char *str, const char *substr, const char *replace
|
|||
static char *match_and_replace(const char *str, const char *pattern, char *device)
|
||||
{
|
||||
char replacement_str[PATH_MAX] = {};
|
||||
char m_key[13] = {};
|
||||
char m_key[14] = {};
|
||||
regex_t regex;
|
||||
|
||||
assert(str != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue