]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
scriptreplay: restrict header name size
authorKarel Zak <kzak@redhat.com>
Mon, 20 Jan 2020 12:04:59 +0000 (13:04 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Jan 2020 12:04:59 +0000 (13:04 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script-playutils.c

index 3845619664e23df617e8798d7f2c7a15cfc92010..78f4d2056ae1486ab7b29eeca4f59ae9bb59e6c4 100644 (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);