kriszyp / msgpackr

Ultra-fast MessagePack implementation with extension for record and structural cloning / msgpack.org[JavaScript/NodeJS]
MIT License
476 stars 50 forks source link

Node v22 [ERR_BUFFER_OUT_OF_BOUNDS]: "length" is outside of buffer bounds #144

Open wieczorek-arch opened 3 weeks ago

wieczorek-arch commented 3 weeks ago

Hi,

Not sure if that should be worrying but on newest nodejs I get following error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: "length" is outside of buffer bounds at proto.utf8Write (node:internal/buffer:1066:13)

While trying to run simple test:

const { Packr } = require('msgpackr')
const packer = new Packr({
    useRecords: true
})

packer.pack({"a":"ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"})

I have checked that on multiple lower versions and problem does not exist.

crazylexa commented 3 weeks ago

https://github.com/nodejs/node/issues/54518