Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | buf: bugfix: int-buf, uint-buf refer to alloc size. | Kaz Kylheku | 2021-05-04 | 1 | -0/+4 |
* buf.c (int_buf, uint_buf): Refer to the buffer length b->len rather than the underlying allocation size b->size. Referring to b->size will not only produce the wrong value when it is larger than len, but b->size can be null for a borrowed buffer, producing a crash. * tests/012/buf.tl: Tests. |