Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177533358
D61255.1794649660.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
535 B
Referenced Files
None
Subscribers
None
D61255.1794649660.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D61255: restore: Reject dumps whose map of dumped files is too large
Attached
Detach File
Event Timeline