Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix stack smashing in test script
  • Loading branch information
Fabian Mauchle committed Jul 15, 2019
1 parent 1eb3d41 commit 4c259c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/t_rewrite.c
Expand Up @@ -412,10 +412,10 @@ main (int argc, char *argv[])
struct modattr *mod = malloc(sizeof(struct modattr));
regex_t regex;

for (i=0; i<253; i+=20){
for (i=0; i<253-20; i+=20){
memcpy(value2+i, value, 20);
}
memcpy(value2+i-20, "and another13\0", 14);
memcpy(value2+i, "and another13\0", 14);

mod->t = 1;
mod->regex = &regex;
Expand Down

0 comments on commit 4c259c9

Please sign in to comment.