Skip to content

Endless loop when processing mbuf chain #17

@bartmoons

Description

@bartmoons

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions