osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.62k stars 762 forks source link

Ephemeris array out of bounds read #280

Open Mictronics opened 3 years ago

Mictronics commented 3 years ago

https://github.com/osqzss/gps-sdr-sim/blob/bf998ab36c8e1639646f7da9b2639233e49c2dfc/gpssim.c#L2308 Array index incremented but never checked against EPHEM_ARRAY_SIZE. Will cause array out of bounds read.

What should happen when end of array is reached?