1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 12:40:35 +00:00

Fix container overflow detected in ASAN mode

This commit is contained in:
Carles Fernandez 2021-09-26 11:05:51 +02:00
parent 69f71107c7
commit 43df43ff9d
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -902,8 +902,7 @@ bool Rtklib_Solver::get_PVT(const std::map<int, Gnss_Synchro> &gnss_observables_
} }
} }
std::vector<double> azel; std::vector<double> azel(used_sats * 2);
azel.reserve(used_sats * 2);
int index_aux = 0; int index_aux = 0;
for (auto &i : rtk_.ssat) for (auto &i : rtk_.ssat)
{ {