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

Avoid buffer overflow

This commit is contained in:
Carles Fernandez 2018-02-07 18:36:34 +01:00
parent fc2b819109
commit efd64532d0

View File

@ -187,7 +187,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/23]) continue;
if (sbssat->sat[i].fcorr.iodf != iodf[i/28]) continue;
udre = getbitu(msg->msg, 22+i*4, 4);
sbssat->sat[i].fcorr.udre = udre+1;
}