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

Lack of boundary checking #9

Open
sobomax opened this issue Jun 6, 2018 · 4 comments
Open

Lack of boundary checking #9

sobomax opened this issue Jun 6, 2018 · 4 comments
Assignees

Comments

@sobomax
Copy link

sobomax commented Jun 6, 2018

Hi, we've tried to use this dissector to debug new implementation of the HEPv3 client, but it seems to be lacking any even basic boundary/sanity checks, causing wireshark to hang solid while dissecting small capture (attached). This severely limits its usefulness for such use cases as well could lead to problems while processing large number of real-world packets, as wire errors do happen in real life.

cap.zip

@lmangani
Copy link
Member

lmangani commented Jun 6, 2018

Hey @sobomax what version of Wireshark are you using?

@sobomax
Copy link
Author

sobomax commented Jun 6, 2018

Latest for windows I think.
screenshot749

@sobomax
Copy link
Author

sobomax commented Jun 6, 2018

P.S. I looked at the code briefly and I don't see any validation of the length field(s). Those values just taken verbatim, never compared to the actual packet size. Which is likely to be the cause.

@lmangani
Copy link
Member

lmangani commented Jun 6, 2018

I agree and that's an excellent observation, we'll do our best to sort this out, just wanted to make sure it was not platform specific - so far personally had no such issues and used it pretty intensively on Linux.

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

3 participants