fix oob write in genversion
This commit is contained in:
parent
476161cf2c
commit
301c6dfc93
1 changed files with 1 additions and 3 deletions
|
@ -74,9 +74,7 @@ int main(int argc, char * argv[]) {
|
|||
free(gitrevfile);
|
||||
if (file) {
|
||||
git_rev = (char*)calloc(sizeof(char), 1024);
|
||||
if (fscanf(file, "%s", git_rev) != 1) {
|
||||
new_ver[4] = -1;
|
||||
}
|
||||
fscanf(file, "%s", git_rev);
|
||||
fclose(file);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue