Verify large signed profiles alongside full owner records

This commit is contained in:
evgeny committed 2026-10-06 12:36:35 +02:00
1 parent eceb69c58e
commit 8fb9129300
3 files changed
+16 -6

No files matched your search

+1 -1
View File
@@ -935,7 +935,7 @@ static int _member_apply_items(void* ctx, const char* ns, uint64_t from_peer, co
DEBUG_ERROR(DEBUG_CATEGORY_MEMBER_SYNC, "%s: invalid member page ns=%s bytes=%zu", MS_ID, ns, len); return MT_ERR_DATA;
}
uint16_t count = ((uint16_t)data[0] << 8) | data[1];
if (count > (len - 2) / 284) {
if (count > (len - 2) / 285) {
DEBUG_ERROR(DEBUG_CATEGORY_MEMBER_SYNC, "%s: impossible page count=%u bytes=%zu", MS_ID, count, len); return MT_ERR_DATA;
}
size_t off = 2;