pgbackrest.git / summary / log / commit / refs
commit cc7f2eea900d0a7a429ffdc2cd45ead88c0298a9
Author: David Steele <david@pgmasters.net>
Date: Sat Oct 09 16:37:25 2021 +0000
Add assert in pckReadNext() to prevent reading into a field.
src/common/type/pack.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/common/type/pack.c b/src/common/type/pack.c
index d9451b7be..1681b38f0 100644
--- a/src/common/type/pack.c
+++ b/src/common/type/pack.c
@@ -702,6 +702,7 @@ pckReadNext(PackRead *this)
FUNCTION_TEST_END();
ASSERT(this != NULL);
+ ASSERT(this->tagNextId == 0);
FUNCTION_TEST_RETURN(pckReadTagNext(this));
}
[parent: 610bfd736ef0]