Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wieczorek-arch opened this issue Aug 26, 2024 · 1 comment

Comments

@wieczorek-arch
Copy link

wieczorek-arch commented Aug 26, 2024

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
Copy link

nodejs/node#54518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants
@crazylexa @wieczorek-arch and others