From 5d92935e0358bd5f175e446a65303ce2b135dfbb Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 9 Nov 2019 13:21:20 +0100 Subject: [PATCH] src/backup/catalog.rs - dump_dir: make sure we parsed the whole data block --- src/backup/catalog.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backup/catalog.rs b/src/backup/catalog.rs index 23b670a3..8857205d 100644 --- a/src/backup/catalog.rs +++ b/src/backup/catalog.rs @@ -323,6 +323,10 @@ impl CatalogReader { } } + if !cursor.is_empty() { + bail!("unable to parse whole catalog data block"); + } + Ok(()) }