You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-09 00:45:49 +02:00
Add assert in pckReadNext() to prevent reading into a field.
This commit is contained in:
@ -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));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user