Closed kjvalencik closed 1 month ago
The borrow API currently panics if trying to borrow an empty buffer. This is because the pointer will be nil.
This PR adds guards for length != 0. Additionally, the ledger skips adding/removing empty buffers.
length != 0
The borrow API currently panics if trying to borrow an empty buffer. This is because the pointer will be nil.
This PR adds guards for
length != 0
. Additionally, the ledger skips adding/removing empty buffers.