rtklibexplorer / RTKLIB

A version of RTKLIB optimized for low cost GNSS receivers, especially u-blox receivers. It is based on RTKLIB 2.4.3 and is kept reasonably closely synced to that branch. This software is provided “AS IS” without any warranties of any kind so please be careful, especially if using it in any kind of real-time application.
http://rtkexplorer.com/
Other
603 stars 236 forks source link

rtknavi_qt mondlg: show nav offset is already guarded #373

Closed ourairquality closed 3 weeks ago

ourairquality commented 3 weeks ago

The eph off need only be multiplied by the number of sats in each set once, and there can be more that two sets, the UI supports 4 sets and at most 4 sets are currently used in the library, and the code already guards against the offset begin OOB unless there was an issue with negative indexes.

See for example the current guard and use:

if (i + off * MAXSAT < rtksvr->nav.n)
   eph[i] = rtksvr->nav.eph[i + off * MAXSAT];