Skip to content

Commit

Permalink
fixup! Fix a few more stack buffer overflows
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeto committed Feb 18, 2024
1 parent 887d8f7 commit dae2438
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/ec_glob.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ int ec_glob(const char *pattern, const char *string)
right_bracket = c + strlen(c);

STRING_CAT(p_pcre, "\\", pcre_str_end);
/* Boundary check for strncat below. */
if (pcre_str_end - p_pcre <= right_bracket - c) {
return -1;
}
Expand Down

0 comments on commit dae2438

Please sign in to comment.