Skip to content

Commit 066666f

Browse files
committed
Fix WiFiUDP::parsePacket crash reset due to can't allocated new memory
1 parent d37deb1 commit 066666f

File tree

5 files changed

+1
-1
lines changed

5 files changed

+1
-1
lines changed

libraries/WiFi/src/WiFiUdp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ int WiFiUDP::parsePacket(){
207207
return 0;
208208
struct sockaddr_in si_other;
209209
int slen = sizeof(si_other) , len;
210-
char * buf = new char[1460];
210+
char * buf = new (std::nothrow) char[1460];
211211
if(!buf){
212212
return 0;
213213
}

tools/mkfatfs/libgcc_s_sjlj-1.dll

81 KB
Binary file not shown.

tools/mkfatfs/libstdc++-6.dll

1.66 MB
Binary file not shown.

tools/mkfatfs/libwinpthread-1.dll

51 KB
Binary file not shown.

tools/mkfatfs/mkfatfs.exe

1.57 MB
Binary file not shown.

0 commit comments

Comments
 (0)