Skip to content

Commit 7824336

Browse files
committed
Add PR Fix: Vulnerability in Comparison of different type sizes me-no-dev#1288
1 parent a7cb52a commit 7824336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebRequest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ void AsyncWebServerRequest::_parseMultipartPostByte(uint8_t data, bool last)
744744
itemWriteByte('\n');
745745
itemWriteByte('-');
746746
itemWriteByte('-');
747-
uint8_t i;
747+
uint32_t i;
748748
for (i = 0; i < _boundary.length(); i++)
749749
itemWriteByte(_boundary.c_str()[i]);
750750
_parseMultipartPostByte(data, last);
@@ -764,7 +764,7 @@ void AsyncWebServerRequest::_parseMultipartPostByte(uint8_t data, bool last)
764764
itemWriteByte('\n');
765765
itemWriteByte('-');
766766
itemWriteByte('-');
767-
uint8_t i;
767+
uint32_t i;
768768
for (i = 0; i < _boundary.length(); i++)
769769
itemWriteByte(_boundary.c_str()[i]);
770770
itemWriteByte('\r');

0 commit comments

Comments
 (0)