while highly unlikely to happen...
char version[1024];
fscanf(.. %[1024] .., version );
should leave room for null termination
Signed-off-by: Wim Coekaerts <wim.coekaerts@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
return false;
}
- if (fscanf(f, "Version: %1024[^\n]s", version) != 1)
+ if (fscanf(f, "Version: %1023[^\n]s", version) != 1)
goto version_error;
if (fgetc(f) != '\n')
if (strcmp(version, CRIU_VERSION) >= 0)
goto version_match;
- if (fscanf(f, "GitID: v%1024[^-]s", version) != 1)
+ if (fscanf(f, "GitID: v%1023[^-]s", version) != 1)
goto version_error;
if (fgetc(f) != '-')