WiflyInterface
Fork of WiflyInterface by
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 |
diff -r e387c1d18663 -r c77799a03294 Wifly/Wifly.cpp --- 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 +}
diff -r e387c1d18663 -r c77799a03294 Wifly/Wifly.h --- 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