fellow_cache: fix off by one in fellow_cache_seglist_init

parent 346716d7
......@@ -1719,7 +1719,7 @@ fellow_cache_seglist_init(void *ptr, size_t space, struct fellow_cache_obj *fco)
AN(ptr);
assert(PAOK(ptr));
assert(space > sizeof *fcsl);
assert(space >= sizeof *fcsl);
INIT_OBJ(fcsl, FELLOW_CACHE_SEGLIST_MAGIC);
lsegs = space / sizeof *fcsl->segs;
assert(lsegs <= UINT16_MAX);
......
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