Skip to content

Rust parser does not continue parsing after CRC error #793

@stabler

Description

@stabler

When a ParserError occurs, the rust parser correctly advances the buffer:
https://github.com/swift-nav/libsbp/blob/master/rust/sbp/src/parser/mod.rs#L138

However, other error types (including a CRC error) do not advance the buffer. Subsequent calls to .parse() will parse the same data and continue to return the same error type. The buffer is still full, so read_more will not be called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions