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 · 6 comments

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

@kriszyp
Copy link
Owner

kriszyp commented Oct 6, 2024

I believe this has been fixed, right? (Its a nodejs bug)

@Samuron
Copy link

Samuron commented Oct 17, 2024

It was fixed in node 22, but on node 23 it happens again

@github-staff github-staff deleted a comment from mayank785 Oct 23, 2024
@github-staff github-staff deleted a comment from mayank785 Oct 23, 2024
@aryamohanan
Copy link

We are also facing the same issue in v23. Has a fix been released, or is there an estimated timeline for its resolution?

@kriszyp
Copy link
Owner

kriszyp commented Nov 1, 2024

Just to be clear, was this not fixed in v1.11.2? (I thought it was)

@aryamohanan
Copy link

Yes, its seems fixed in v1.11.2.

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

12 participants
@kriszyp @crazylexa @Samuron @aryamohanan @wieczorek-arch and others