Verify large signed profiles alongside full owner records
This commit is contained in:
1 parent
eceb69c58e
commit
8fb9129300
3 files changed
+16
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user