AlphaLima / ESP32-Serial-Bridge

Wifi to 3x Serial bridge based on a ESP32
http://www.postfrontal.com/forum/topic.asp?TOPIC_ID=8467
MIT License
409 stars 138 forks source link

(Solved) Buffer Index Overflow #1

Closed userx14 closed 6 years ago

userx14 commented 6 years ago

In line 96: uint8_t i1[NUM_COM]={0,0,0}; you use uint8_t to index your buffer which has the size #define bufferSize 8192. This leads to an buffer overflow if we recieve tcp packets which are greater than 256 or if we recieve multiple packets with short delay.

userx14 commented 6 years ago

Thank your for this extremely fast fix :+1: