File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 19
19
uses : actions/checkout@v4
20
20
21
21
- name : Arduino Lint
22
- uses : arduino/arduino-lint-action@v1
22
+ uses : arduino/arduino-lint-action@v2
23
23
with :
24
24
compliance : specification
25
25
library-manager : update
Original file line number Diff line number Diff line change 1
1
name =ArduinoHttpClient
2
- version =0.6.0
2
+ version =0.6.1
3
3
author =Arduino
4
4
maintainer =Arduino <info@arduino.cc>
5
5
sentence =[EXPERIMENTAL] Easily interact with web servers from Arduino, using HTTP and WebSockets.
Original file line number Diff line number Diff line change @@ -867,7 +867,11 @@ int HttpClient::readHeader()
867
867
case eReadingContentLength:
868
868
if (isdigit (c))
869
869
{
870
- iContentLength = iContentLength * 10 + (c - ' 0' );
870
+ long _iContentLength = iContentLength * 10 + (c - ' 0' );
871
+ // Only apply if the value didn't wrap around
872
+ if (_iContentLength > iContentLength) {
873
+ iContentLength = _iContentLength;
874
+ }
871
875
}
872
876
else
873
877
{
You can’t perform that action at this time.
0 commit comments