mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-07-03 18:42:56 +00:00
Avoid potential overflow
This commit is contained in:
parent
891d6b80df
commit
96af5fc6e6
@ -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/22]) continue;
|
if (sbssat->sat[i].fcorr.iodf != iodf[i/23]) 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…
x
Reference in New Issue
Block a user