Skip to content

Commit c5009cb

Browse files
authored
Merge pull request #683 from ourairquality/rtknavi-fix-oob
rtknavi: avoid oob access
2 parents f290f20 + 080bcc2 commit c5009cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/winapp/rtknavi/navimain.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ __fastcall TMainForm::TMainForm(TComponent* Owner)
121121
for (int i=0;i<8;i++) {
122122
StreamC[i]=Stream[i]=Format[i]=CmdEna[i][0]=CmdEna[i][1]=CmdEna[i][2]=0;
123123
}
124+
for (int i=0;i<3;i++) {
125+
CmdEna[i][0]=CmdEna[i][1]=CmdEna[i][2]=0;
126+
}
124127
TimeSys=SolType=PlotType1=PlotType2=FreqType1=FreqType2=0;
125128
TrkType1=TrkType2=0;
126129
TrkScale1=TrkScale2=5;

0 commit comments

Comments
 (0)