
WINPR_ASSERT(advance);
+ if (pbOrderHdr >= pbEnd)
+    return 0;  // or appropriate error code
