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

Use a larger buffer for variable data. #430

Closed
wants to merge 1 commit into from

Conversation

nico-incubiq
Copy link

Hi,

Recently I started to get RangeError: Offset is out of bounds errors while starting my server, and it started just after I moved the server to a new address.
I debugged the issue, and found that the length of the content in variableData (see code change) is 263, which is too large for the allocated 200.
I hope this fix is fine for you and you can produce a new tagged version very soon.
Thank you very much.

Regards,

Nicolas

@nico-incubiq
Copy link
Author

nico-incubiq commented Aug 18, 2016

For the record, there seems to be no issue on NodeJS 5.9.1 which I tried today, but newer versions (6.4.0 for example) trigger the ArrayOutOfBound exception. Maybe these newer versions check array overflows more strictly...

@arthurschreiber
Copy link
Collaborator

Is this related to #431?

@nico-incubiq
Copy link
Author

Yes it definitely is!
Good news if the node guys are going to fix this on their own.

If you think there is no reason for the connection data to be larger than 200 characters in any situation then you can close the pull request.

Thanks.

@arthurschreiber
Copy link
Collaborator

As this is a bug in Node 6.4.0 and will be fixed in 6.4.1, I'll close this. Many thanks for putting in the work here anyway! ❤️

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

Successfully merging this pull request may close these issues.

2 participants