Changeset 2668 in ntrip for trunk/rtcm3torinex/lib


Ignore:
Timestamp:
Nov 11, 2010, 10:09:55 AM (13 years ago)
Author:
stoecker
Message:

fixed illegal memory access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/lib/rtcm3torinex.c

    r2660 r2668  
    955955        };
    956956
    957         int sys = RTCM3_MSM_GPS, i, count, j, old = 0, wasamb = 0;
     957        int sys = RTCM3_MSM_GPS, i, count, j, old = 0, wasnoamb = 0;
    958958        int syncf, sigmask, numsat = 0, numsig = 0, numcells;
    959959        uint64_t satmask, cellmask, ui;
     
    10171017        {
    10181018        case 1: case 2: case 3:
    1019           ++wasamb;
     1019          ++wasnoamb;
    10201020          for(j = numsat; j--;)
    10211021            GETFLOAT(rrmod[j], 10, 1/1024.0)
     
    11841184                  {
    11851185                    gnss->measdata[num][cd.typeR] = psr[count]
    1186                     +(rrmod[numsat]+rrint[numsat])*LIGHTSPEED/1000.0;
     1186                    +(rrmod[numsat])*LIGHTSPEED/1000.0;
    11871187                    gnss->dataflags[num] |= (1<<cd.typeR);
    11881188                  }
     
    11921192                  {
    11931193                    gnss->measdata[num][cd.typeP] = cp[count]
    1194                     +(rrmod[numsat]+rrint[numsat])*LIGHTSPEED/1000.0/wl;
     1194                    +(rrmod[numsat])*LIGHTSPEED/1000.0/wl;
    11951195                    if(handle->lastlockmsm[j][i] != ll[count])
    11961196                    {
     
    12051205                  {
    12061206                    gnss->measdata[num][cd.typeR] = psr[count]
    1207                     +(rrmod[numsat]+rrint[numsat])*LIGHTSPEED/1000.0;
     1207                    +(rrmod[numsat])*LIGHTSPEED/1000.0;
    12081208                    gnss->dataflags[num] |= (1<<cd.typeR);
    12091209                  }
     
    13371337        if(!syncf || old)
    13381338        {
    1339           if(wasamb) /* not RINEX compatible without */
     1339          if(!wasnoamb) /* not RINEX compatible without */
    13401340            ret = 1;
    13411341          else
Note: See TracChangeset for help on using the changeset viewer.