mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-18 20:57:56 +00:00
Remove asserts in ob_makespace, that's what ob_overrun is for (Fixes #98)
This commit is contained in:
parent
9feffb89c0
commit
a5ff0ed2a3
@ -167,8 +167,6 @@ ssize_t _ob_makespace(struct __sourceloc __whence, struct overlay_buffer *b, siz
|
||||
assert(b != NULL);
|
||||
DEBUGF(overlaybuffer, "ob_makespace(b=%p, bytes=%zd) b->bytes=%p b->position=%zu b->allocSize=%zu",
|
||||
b, bytes, b->bytes, b->position, b->allocSize);
|
||||
assert(b->position <= b->sizeLimit);
|
||||
assert(b->position <= b->allocSize);
|
||||
if (b->position)
|
||||
assert(b->bytes != NULL);
|
||||
if (b->position + bytes > b->sizeLimit) {
|
||||
|
Loading…
Reference in New Issue
Block a user