1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Add assert in pckReadNext() to prevent reading into a field.

This commit is contained in:
David Steele 2021-10-09 12:37:25 -04:00
parent 610bfd736e
commit cc7f2eea90

View File

@ -702,6 +702,7 @@ pckReadNext(PackRead *this)
FUNCTION_TEST_END(); FUNCTION_TEST_END();
ASSERT(this != NULL); ASSERT(this != NULL);
ASSERT(this->tagNextId == 0);
FUNCTION_TEST_RETURN(pckReadTagNext(this)); FUNCTION_TEST_RETURN(pckReadTagNext(this));
} }