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

Endless loop when processing mbuf chain #17

Open
bartmoons opened this issue Jul 17, 2020 · 0 comments
Open

Endless loop when processing mbuf chain #17

bartmoons opened this issue Jul 17, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@bartmoons
Copy link
Collaborator

bartmoons commented Jul 17, 2020

When mtu is very small (e.g. 6 or 7), the final mbuf can be larger than the second last mbuf, since the RCS is sent seperately.
The curr_bit_offset variable will never be larger than the temp_offset variable when fetching a byte using mbuf_get_byte() which results in an endless loop.

See mbuf_compute_mic() and mbuf_copy()

Reproduce error w/ fragment example with mtu set to 6 or 7 with NO_ACK reliability mode.

@bartmoons bartmoons added the bug Something isn't working label Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant