Changeset 453 in flair-src


Ignore:
Timestamp:
Oct 1, 2021, 7:01:26 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

add a security warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/ui_com.cpp

    r452 r453  
    364364  }
    365365 
     366  if(ptr->actual_size+dataToSend->SendSize()>ptr->final_size) {
     367      Warn("out of buf %i/%i\n",ptr->actual_size+dataToSend->SendSize(),ptr->final_size);
     368      return;
     369  }
     370 
    366371  dataToSend->CopyDatas(ptr->buf+ptr->actual_size);
    367372  ptr->actual_size+=dataToSend->SendSize();
     373 
    368374  //Printf("nb buffered %i/%i\n",ptr->actual_size,ptr->final_size);
    369375  //Printf("pushed size %i period %i nb buffering %i\n",dataToSend->SendSize(),dataToSend->SendPeriod(),dataToSend->NbBuffering());
Note: See TracChangeset for help on using the changeset viewer.