Anonymous
Not applicable
Oct 29, 2015
05:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 29, 2015
05:34 PM
Hi,
The buffer returned by wiced_packet_get_data is not NULL terminated.
So it should not use strstr for the request_string, it should use strnstr
instead.
A similar fix is already made for http server in new SDK,
Just want to point out the ota_server daemon needs fix as well.
BTW, in ota_server.c
I don't understand the purpose of below code snip, can someone explain it?
temp = request_string[ server->request.header_size ];
request_string[ server->request.header_size ] ='\0';
request_string[ server->request.header_size ] = temp;
Labels
- Labels:
-
Over The Air Updates (OTA)
-
SDK 3.x
0 Replies