When rounding up `tsize' exceeds the remaining buffer size, `size' underflows and an invalid read past the buffer data follows.
When rounding up `tsize' exceeds the remaining buffer size, `size' underflows and an invalid read past the buffer data follows.