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

value is out of bounds #37

Open
guerrerocarlos opened this issue Apr 25, 2015 · 1 comment
Open

value is out of bounds #37

guerrerocarlos opened this issue Apr 25, 2015 · 1 comment

Comments

@guerrerocarlos
Copy link

Hello @kmpm how have you been?

I am randomly (but offten) getting this error while using mdns-js basic functions inside airplay-js
screen shot 2015-04-16 at 8 14 06 pm

Do you have any Idea what might be causing it, so I can investigate further in the right direction, are packages corrupt in my network?

Have a great day by the way :)

@kmpm
Copy link
Collaborator

kmpm commented May 30, 2015

Hi,
I'm fine but been super busy.

That was a strange one...
could you, please, set the environment variable DEBUG like the following

export DEBUG=mdns-packet:lib:dns:dnsrecord

and then run again.
My guess is that it is working with a fairly large packet and when it tries to "compress" it something goes wrong. The last debug line you will see is probably writing a name ref to %d where %d is a number that in this case will be >255.

The bug is most likely in https://github.com/kmpm/node-mdns-js-packet which takes care of the actual packet parsing and writing.

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

No branches or pull requests

2 participants