Page MenuHomeFreeBSD

D61255.1794649660.diff
No OneTemporary

Authored By
Unknown
Size
535 B
Referenced Files
None
Subscribers
None

D61255.1794649660.diff

diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c
--- a/sbin/restore/tape.c
+++ b/sbin/restore/tape.c
@@ -286,6 +286,12 @@
fprintf(stderr, "Cannot find file dump list\n");
done(1);
}
+ if (spcl.c_count < 0 ||
+ (ino_t)spcl.c_count * TP_BSIZE * NBBY + 1 > maxino) {
+ fprintf(stderr, "Corrupted dump: list of dumped files is "
+ "larger than the file system\n");
+ done(1);
+ }
map = calloc((unsigned)1, (unsigned)howmany(maxino, NBBY));
if (map == (char *)NULL)
panic("no memory for file dump list\n");

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 14, 9:47 AM (55 m, 45 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41544068
Default Alt Text
D61255.1794649660.diff (535 B)

Event Timeline