altos: Bounds check Skytraq GPS tracking data array
authorKeith Packard <keithp@keithp.com>
Thu, 2 Sep 2010 02:53:24 +0000 (19:53 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 2 Sep 2010 02:53:24 +0000 (19:53 -0700)
commit1177e0a684328422be5adc68093d0091a218a824
tree83bbb65c7b47b72ebc712442ed28a7b68e8980e5
parent775acb89660cdee2f3c54c38297baefe39f2414c
altos: Bounds check Skytraq GPS tracking data array

Missing GPS serial data could cause the tracking array reset to
get skipped, causing the array to be overrun, smashing critical data
beyond the array.

This was detected using the 'altosui' flash command to program a
device from TM. Hitting the USB that hard caused TM to crash with a
mutex error (3 beeps) after the ao_gps_task structure was overwritten
with zeros.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao.h
src/ao_gps_skytraq.c
src/ao_gps_test.c
src/ao_gps_test_skytraq.c