garyexplains/examples

ublox_tinygps_ntp_server_pico - dealing with malformed udp

Opened this issue · 0 comments

Thanks for the ublox_tinygps_ntp_server_pico. Made tiny mods to run on ESP8266. Would run for 40-60 mins then crash having received a udp packet from 71.69.84.31 of packet size 18516. Couldn't fathom how this was getting on my LAN. Don't accept anything incoming. Possible corruption in udp stack? Minor mod to your code to only process udp packets if ((packetSize > 40) && (packetSize < UDP_TX_PACKET_MAX_SIZE)). Trust of interest.