Remove asserts in ob_makespace, that's what ob_overrun is for (Fixes #98)

This commit is contained in:
Jeremy Lakeman 2016-03-15 09:15:34 +10:30
parent 9feffb89c0
commit a5ff0ed2a3

View File

@ -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) {