bigint-buffer icon indicating copy to clipboard operation
bigint-buffer copied to clipboard

Core dump when calling toBufferLE with length 0

Open joepie91 opened this issue 3 years ago • 0 comments

> bigintBuffer.toBufferLE(8n, 4)
<Buffer 08 00 00 00>
> bigintBuffer.toBufferLE(8n, 0)
node: ../src/bigint-buffer.c:163: fromBigInt: Assertion `status == napi_ok' failed.
Aborted (core dumped)

joepie91 avatar Nov 22 '21 20:11 joepie91