arduino-libraries / Ethernet

Ethernet Library for Arduino
http://arduino.cc/
252 stars 253 forks source link

fix of bounds memset #216

Open technyon opened 1 year ago

technyon commented 1 year ago

Fixes issue #45

CLAassistant commented 1 year ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

github-actions[bot] commented 1 year ago

Memory usage change @ 39be07e4e692e981a9ff1201b29ee52f7de33da5

Board flash % RAM for global variables %
arduino:avr:leonardo :small_red_triangle: 0 - +64 0.0 - +0.22 0 - 0 0.0 - 0.0
arduino:avr:mega :small_red_triangle: 0 - +64 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:avr:nano :small_red_triangle: 0 - +64 0.0 - +0.21 0 - 0 0.0 - 0.0
arduino:megaavr:nona4809 :small_red_triangle: 0 - +78 0.0 - +0.16 0 - 0 0.0 - 0.0
arduino:megaavr:uno2018 :small_red_triangle: 0 - +78 0.0 - +0.16 0 - 0 0.0 - 0.0
arduino:sam:arduino_due_x_dbg :small_red_triangle: 0 - +56 0.0 - +0.01 N/A N/A
arduino:samd:arduino_zero_edbg :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkr1000 :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrfox1200 :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrgsm1400 :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrnb1500 :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrvidor4000 :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrwan1300 :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrwan1310 :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrwifi1010 :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrzero :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:nano_33_iot :small_red_triangle: 0 - +52 0.0 - +0.02 0 - 0 0.0 - 0.0
Click for full report table Board|examples/AdvancedChatServer
flash|%|examples/AdvancedChatServer
RAM for global variables|%|examples/BarometricPressureWebServer
flash|%|examples/BarometricPressureWebServer
RAM for global variables|%|examples/ChatServer
flash|%|examples/ChatServer
RAM for global variables|%|examples/DhcpAddressPrinter
flash|%|examples/DhcpAddressPrinter
RAM for global variables|%|examples/DhcpChatServer
flash|%|examples/DhcpChatServer
RAM for global variables|%|examples/LinkStatus
flash|%|examples/LinkStatus
RAM for global variables|%|examples/PagerServer
flash|%|examples/PagerServer
RAM for global variables|%|examples/TelnetClient
flash|%|examples/TelnetClient
RAM for global variables|%|examples/UDPSendReceiveString
flash|%|examples/UDPSendReceiveString
RAM for global variables|%|examples/UdpNtpClient
flash|%|examples/UdpNtpClient
RAM for global variables|%|examples/WebClient
flash|%|examples/WebClient
RAM for global variables|%|examples/WebClientRepeating
flash|%|examples/WebClientRepeating
RAM for global variables|%|examples/WebServer
flash|%|examples/WebServer
RAM for global variables|% -|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|- arduino:avr:leonardo|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|58|0.2|0|0.0|60|0.21|0|0.0|0|0.0|0|0.0|56|0.2|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|64|0.22|0|0.0|56|0.2|0|0.0|56|0.2|0|0.0|0|0.0|0|0.0 arduino:avr:mega|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|60|0.02|0|0.0|60|0.02|0|0.0|0|0.0|0|0.0|56|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|64|0.03|0|0.0|56|0.02|0|0.0|56|0.02|0|0.0|0|0.0|0|0.0 arduino:avr:nano|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|58|0.19|0|0.0|60|0.2|0|0.0|0|0.0|0|0.0|56|0.18|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|64|0.21|0|0.0|56|0.18|0|0.0|56|0.18|0|0.0|0|0.0|0|0.0 arduino:megaavr:nona4809|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|78|0.16|0|0.0|74|0.15|0|0.0|0|0.0|0|0.0|48|0.1|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|62|0.13|0|0.0|48|0.1|0|0.0|48|0.1|0|0.0|0|0.0|0|0.0 arduino:megaavr:uno2018|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|78|0.16|0|0.0|74|0.15|0|0.0|0|0.0|0|0.0|48|0.1|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|62|0.13|0|0.0|48|0.1|0|0.0|48|0.1|0|0.0|0|0.0|0|0.0 arduino:sam:arduino_due_x_dbg|0|0.0|N/A|N/A|0|0.0|N/A|N/A|0|0.0|N/A|N/A|56|0.01|N/A|N/A|56|0.01|N/A|N/A|0|0.0|N/A|N/A|56|0.01|N/A|N/A|0|0.0|N/A|N/A|0|0.0|N/A|N/A|56|0.01|N/A|N/A|56|0.01|N/A|N/A|56|0.01|N/A|N/A|0|0.0|N/A|N/A arduino:samd:arduino_zero_edbg|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkr1000|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkrfox1200|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkrgsm1400|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkrnb1500|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkrvidor4000|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkrwan1300|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkrwan1310|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkrwifi1010|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:mkrzero|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0 arduino:samd:nano_33_iot|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|52|0.02|0|0.0|0|0.0|0|0.0
Click for full report CSV ``` Board,examples/AdvancedChatServer
flash,%,examples/AdvancedChatServer
RAM for global variables,%,examples/BarometricPressureWebServer
flash,%,examples/BarometricPressureWebServer
RAM for global variables,%,examples/ChatServer
flash,%,examples/ChatServer
RAM for global variables,%,examples/DhcpAddressPrinter
flash,%,examples/DhcpAddressPrinter
RAM for global variables,%,examples/DhcpChatServer
flash,%,examples/DhcpChatServer
RAM for global variables,%,examples/LinkStatus
flash,%,examples/LinkStatus
RAM for global variables,%,examples/PagerServer
flash,%,examples/PagerServer
RAM for global variables,%,examples/TelnetClient
flash,%,examples/TelnetClient
RAM for global variables,%,examples/UDPSendReceiveString
flash,%,examples/UDPSendReceiveString
RAM for global variables,%,examples/UdpNtpClient
flash,%,examples/UdpNtpClient
RAM for global variables,%,examples/WebClient
flash,%,examples/WebClient
RAM for global variables,%,examples/WebClientRepeating
flash,%,examples/WebClientRepeating
RAM for global variables,%,examples/WebServer
flash,%,examples/WebServer
RAM for global variables,% arduino:avr:leonardo,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,58,0.2,0,0.0,60,0.21,0,0.0,0,0.0,0,0.0,56,0.2,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.22,0,0.0,56,0.2,0,0.0,56,0.2,0,0.0,0,0.0,0,0.0 arduino:avr:mega,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,60,0.02,0,0.0,60,0.02,0,0.0,0,0.0,0,0.0,56,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.03,0,0.0,56,0.02,0,0.0,56,0.02,0,0.0,0,0.0,0,0.0 arduino:avr:nano,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,58,0.19,0,0.0,60,0.2,0,0.0,0,0.0,0,0.0,56,0.18,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.21,0,0.0,56,0.18,0,0.0,56,0.18,0,0.0,0,0.0,0,0.0 arduino:megaavr:nona4809,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,78,0.16,0,0.0,74,0.15,0,0.0,0,0.0,0,0.0,48,0.1,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,62,0.13,0,0.0,48,0.1,0,0.0,48,0.1,0,0.0,0,0.0,0,0.0 arduino:megaavr:uno2018,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,78,0.16,0,0.0,74,0.15,0,0.0,0,0.0,0,0.0,48,0.1,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,62,0.13,0,0.0,48,0.1,0,0.0,48,0.1,0,0.0,0,0.0,0,0.0 arduino:sam:arduino_due_x_dbg,0,0.0,N/A,N/A,0,0.0,N/A,N/A,0,0.0,N/A,N/A,56,0.01,N/A,N/A,56,0.01,N/A,N/A,0,0.0,N/A,N/A,56,0.01,N/A,N/A,0,0.0,N/A,N/A,0,0.0,N/A,N/A,56,0.01,N/A,N/A,56,0.01,N/A,N/A,56,0.01,N/A,N/A,0,0.0,N/A,N/A arduino:samd:arduino_zero_edbg,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkr1000,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkrfox1200,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkrgsm1400,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkrnb1500,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkrvidor4000,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkrwan1300,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkrwan1310,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkrwifi1010,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:mkrzero,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 arduino:samd:nano_33_iot,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,52,0.02,0,0.0,0,0.0,0,0.0 ```