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:
parent
fc2b819109
commit
efd64532d0
@ -187,7 +187,7 @@ int decode_sbstype6(const sbsmsg_t *msg, sbssat_t *sbssat)
|
|||||||
}
|
}
|
||||||
for (i = 0; i < sbssat->nsat && i < MAXSAT; i++)
|
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);
|
udre = getbitu(msg->msg, 22+i*4, 4);
|
||||||
sbssat->sat[i].fcorr.udre = udre+1;
|
sbssat->sat[i].fcorr.udre = udre+1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user