On Mon, Mar 29, 2021, at 10:50 PM Gary E. Miller <
gem@rellim.com> wrote:
Yo Andreas!
On Tue, 30 Mar 2021 04:58:45 +0000
Neustifter Andreas <Andreas.Neustifter@kapsch.net> wrote:
> > I added a check in packet.c for a u-blox packet with a length field
> > containing zero. Now in git head. It could not go into an
> > infinite loop, but it possibly could have looped a long time.
>
> Yes, this is what I have done in the interim as well but wanted to
> verify it first. Good to know that you came to the same conclusion.
Nothing verified until I have a data sample that used to fail.
Attached is a sample where a malformed ublox packet prevents the detection of several later ublox packets. Removing the first byte via dd allows the construed test (gpscat -t) to detect the packets. This was extracted from the first email in the chain and reformated for gpscat.