Commit db3e3ebc authored by sundb's avatar sundb Committed by Oran Agra
Browse files

Santize dump payload: fix invalid listpack entry start with EOF (#9889)

When an invalid listpack entry starts with EOF, we will skip it when we verify it in the loop.

(cherry picked from commit 1808618f)
parent 86db5091
......@@ -956,6 +956,10 @@ int lpValidateIntegrity(unsigned char *lp, size_t size, int deep){
count++;
}
/* Make sure 'p' really does point to the end of the listpack. */
if (p != lp + size - 1)
return 0;
/* Check that the count in the header is correct */
uint32_t numele = lpGetNumElements(lp);
if (numele != LP_HDR_NUMELE_UNKNOWN && numele != count)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment