src/backup/catalog.rs - dump_dir: make sure we parsed the whole data block

This commit is contained in:
Dietmar Maurer 2019-11-09 13:21:20 +01:00
parent 12a1975af9
commit 5d92935e03

View File

@ -323,6 +323,10 @@ impl <R: Read + Seek> CatalogReader<R> {
}
}
if !cursor.is_empty() {
bail!("unable to parse whole catalog data block");
}
Ok(())
}