bin/xbps-create/main.c: Out-of-bounds write (CID 62686)
This commit is contained in:
parent
ced1ce4b40
commit
2fe9fbe777
@ -497,7 +497,7 @@ process_entry_file(struct archive *ar,
|
|||||||
if (len < 0 || len > st.st_size)
|
if (len < 0 || len > st.st_size)
|
||||||
die("failed to add entry %s (readlink) to archive:",
|
die("failed to add entry %s (readlink) to archive:",
|
||||||
xe->file);
|
xe->file);
|
||||||
buf[len] = '\0';
|
buf[len-1] = '\0';
|
||||||
archive_entry_set_symlink(entry, buf);
|
archive_entry_set_symlink(entry, buf);
|
||||||
}
|
}
|
||||||
free(p);
|
free(p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user