src/backup/catalog.rs - dump_dir: make sure we parsed the whole data block
This commit is contained in:
1 parent
12a1975af9
commit
5d92935e03
1 file changed
+4
@@ -323,6 +323,10 @@ impl <R: Read + Seek> CatalogReader<R> {
|
||||
}
|
||||
}
|
||||
|
||||
if !cursor.is_empty() {
|
||||
bail!("unable to parse whole catalog data block");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user