Skip to content

bug: GPS buffer discards data when exactly full #47

@gdellis

Description

@gdellis

Problem

In gps.cpp:65-66, the condition if (len > 0 && (size_t)len < GPS_BUFFER_SIZE) discards data when exactly GPS_BUFFER_SIZE bytes are received. Should be <= not <.

Location

  • firmware/main/gps.cpp:65-66

Severity

MEDIUM - Silent data loss when GPS outputs large amount of data

Suggested Fix

Change < GPS_BUFFER_SIZE to <= GPS_BUFFER_SIZE - 1 or handle full buffer case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions