Skip to content

Commit

Permalink
Merge pull request #120 from valgur/patch-3
Browse files Browse the repository at this point in the history
Fix an out-of-bounds bug in ppp.c
  • Loading branch information
rtklibexplorer authored Apr 17, 2023
2 parents 94f8715 + 1a66490 commit 4be1aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ extern void pppos(rtk_t *rtk, const obsd_t *obs, int n, const nav_t *nav)
rs=mat(6,n); dts=mat(2,n); var=mat(1,n); azel=zeros(2,n);

for (i=0;i<MAXSAT;i++) for (j=0;j<opt->nf;j++) rtk->ssat[i].fix[j]=0;
for (i=0;i<MAXOBS;i++) for (j=0;j<opt->nf;j++) {
for (i=0;i<n&&i<MAXOBS;i++) for (j=0;j<opt->nf;j++) {
rtk->ssat[obs[i].sat-1].snr_rover[j]=obs[i].SNR[j];
rtk->ssat[obs[i].sat-1].snr_base[j] =0;
}
Expand Down

0 comments on commit 4be1aac

Please sign in to comment.