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

Unmarshaling enters infinite loop if the length field is zero. #70

Open
kastork opened this issue Mar 30, 2020 · 4 comments
Open

Unmarshaling enters infinite loop if the length field is zero. #70

kastork opened this issue Mar 30, 2020 · 4 comments

Comments

@kastork
Copy link

kastork commented Mar 30, 2020

When sending PDU's constructed in open-dis python, the length field is zero. During unmarshalling in open-dis-java, an infinite loop is entered because the buffer read pointer is never advanced to the end of the first pdu in the UDP packet.

A pdu with zero in the length field should be detected as invalid and handled accordingly.

@leif81
Copy link
Member

leif81 commented Apr 1, 2020

Thank-you for the report @kastork . That's a great test case that uses the different language implementations.

Would you be interested in submitting a pull request to fix this?

@kastork
Copy link
Author

kastork commented Apr 9, 2020

Yes, could be a while though.

@danielshenry
Copy link

danielshenry commented Aug 13, 2024

my colleague has a fix for this, can i open a branch?
FYI, this was a big problem for us circa 2015-2016, we have used a custom
jar this fixes this issue.
i am not sure how to open a branch for this project,
the fix is pretty simple,
i guess there are only two branches to choose from other than master, but i'm not sure this mixes with the other branches.

@leif81
Copy link
Member

leif81 commented Aug 13, 2024

@danielshenry what you'll need to do is click the fork button on this project. And then commit your proposed changes to the fork in your users profile. And then when ready open a pull request to propose contributing the change.

For more info you can see this Github docs page : https://docs.github.com/en/pull-requests/collaborating-with-pull-requests

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

3 participants