We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a6180 commit 6054f43Copy full SHA for 6054f43
src/WiFiStorage.h
@@ -59,6 +59,13 @@ class WiFiStorageClass
59
return true;
60
}
61
static bool downloadOTA(const char * url, uint8_t * res_ota_download = NULL) {
62
+ /* The buffer within the nina firmware allows a maximum
63
+ * url size of 128 bytes. It's better to prevent the
64
+ * transmission of over-sized URL as soon as possible.
65
+ */
66
+ if (strlen(url) > 128)
67
+ return false;
68
+
69
uint8_t const res = WiFiDrv::downloadOTA(url, strlen(url));
70
if (res_ota_download)
71
*res_ota_download = res;
0 commit comments