renesas-rx / amazon-freertos

A fork/prototype of the Amazon FreeRTOS to support Renesas RX MCUs. Please refer to our wiki for more details.
https://github.com/renesas-rx/amazon-freertos/wiki
MIT License
7 stars 6 forks source link

ESP32 wifi driver buffer handling #9

Open HirokiIshiguro opened 5 years ago

HirokiIshiguro commented 5 years ago

Describe the bug Wrong behavior exists in esp8266_driver_2.c esp8266_recv_task() case3 when receiving authentication handshake 5KB data. recvbuff[recv_count] overflow exists.

System information

Expected behavior With no wrong behavior.

Screenshots or console output N/A

To reproduce N/A

Code to reproduce the bug The code should be wrapped in the cpp tag in order to be displayed clearly. For example:

esp8266_driver_2.c: L91

    if (recv_count < (sizeof(recvbuff) - 2)) {
        recv_count++;
    }

If the code is longer than 30 lines, GIST is preferred.

Additional context N/A

Thank you!