1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-25 00:16:58 +00:00

Avoid out-of-bounds read

This commit is contained in:
Carles Fernandez 2019-07-14 03:17:57 +02:00
parent 89aa7c61e6
commit 4dfb2cf5d2
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -221,7 +221,7 @@ int decode_sbstype6(const sbsmsg_t *msg, sbssat_t *sbssat)
}
for (i = 0; i < sbssat->nsat && i < MAXSAT; i++)
{
if (sbssat->sat[i].fcorr.iodf != iodf[i / 32])
if (sbssat->sat[i].fcorr.iodf != iodf[i / 39])
{
continue;
}