stack buffer overflow bug fix

This commit is contained in:
vivek-shankar 2018-07-28 22:08:52 -04:00
parent 28a31e42a1
commit ef17789c5a
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ with size......... | /
uint16_t mid = (uint16_t)msg_id;
get_logical_time();
float stime = (float)logical_clock.toSec();
uint8_t r8header[4];
uint8_t r8header[8];
uint64_t rheader = 0;
memcpy(r8header, &mtype, sizeof(uint8_t));
memcpy(r8header+1, &mid, sizeof(uint16_t));