1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Avoid potential overflow

This commit is contained in:
Carles Fernandez 2018-02-03 11:11:05 +01:00
parent 891d6b80df
commit 96af5fc6e6

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