scriptreplay: restrict header name size

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2020-01-20 13:04:59 +01:00
parent eae8661e68
commit 0d74f2628c
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ static int read_multistream_step(struct replay_step *step, FILE *f, char type)
if (rc != 2)
break;
rc = fscanf(f, "%s", buf); /* name */
rc = fscanf(f, "%128s", buf); /* name */
if (rc != 1)
break;
step->name = strrealloc(step->name, buf);