Allocate extra 1 byte
@@ -65,8 +65,8 @@ int ngtcp2_balloc_get(ngtcp2_balloc *balloc, void **pbuf, size_t n) {
assert(n <= balloc->blklen);
if (ngtcp2_buf_left(&balloc->buf) < n) {
- p = ngtcp2_mem_malloc(balloc->mem,
- sizeof(ngtcp2_memblock_hd) + 0xfllu + balloc->blklen);
+ p = ngtcp2_mem_malloc(balloc->mem, sizeof(ngtcp2_memblock_hd) + 0x10llu +
+ balloc->blklen);
if (p == NULL) {
return NGTCP2_ERR_NOMEM;
}
