Changeset 11130 in ntrip for trunk/BNC/src/RTCM


Ignore:
Timestamp:
Oct 28, 2026, 9:32:30 AM (7 days ago)
Author:
stuerze
Message:

Some fixes from security point of view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM/RTCM2.cpp

    r7629 r11130  
    667667  };
    668668
    669   if ( 24*DW.size() < start+n-1 ) {
     669  if ( 24*DW.size() < start+n ) { // last bit read: start+n-1
    670670#if (DEBUG>0)
    671671    cerr << "Debug output RTCM2packet::getUnsignedBits" << endl
    … …  
    727727  };
    728728
    729   if ( 24*DW.size() < start+n-1 ) {
     729  if ( 24*DW.size() < start+n ) { // last bit read: start+n-1
    730730#if (DEBUG>0)
    731731    cerr << "Debug output RTCM2packet::getUnsignedBits" << endl
Note: See TracChangeset for help on using the changeset viewer.