Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Wifly_HelloWorld Websocket_Wifly_HelloWorld RPC_Wifly_HelloWorld HTTPClient_Wifly_HelloWorld ... more
Revision 9:c77799a03294, committed 2014-01-28
- Comitter:
- Bogdan Marinescu
- Date:
- Tue Jan 28 11:00:48 2014 +0200
- Parent:
- 8:e387c1d18663
- Commit message:
- Address various potential buffer overflow issues
https://mbed.org/comments/cr/93/4779/#c8499
Changed in this revision
| Wifly/Wifly.cpp | Show annotated file Show diff for this revision Revisions of this file |
| Wifly/Wifly.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Wifly/Wifly.cpp Fri Oct 25 05:22:48 2013 +0000
+++ b/Wifly/Wifly.cpp Tue Jan 28 11:00:48 2014 +0200
@@ -67,7 +67,7 @@
bool Wifly::join()
{
- char cmd[20];
+ char cmd[75];
for (int i= 0; i < MAX_TRY_JOIN; i++) {
@@ -543,4 +543,4 @@
attach_rx(true);
DBG("result: %d\r\n", result)
return result;
-}
\ No newline at end of file
+}
--- a/Wifly/Wifly.h Fri Oct 25 05:22:48 2013 +0000
+++ b/Wifly/Wifly.h Tue Jan 28 11:00:48 2014 +0200
@@ -212,8 +212,8 @@
RawSerial wifi;
DigitalOut reset_pin;
DigitalIn tcp_status;
- char phrase[30];
- char ssid[30];
+ char phrase[65];
+ char ssid[33];
const char * ip;
const char * netmask;
const char * gateway;
@@ -239,4 +239,4 @@
char * getStringSecurity();
};
-#endif
\ No newline at end of file
+#endif
Roving Networks WiFly RN-171-XV