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: mbed_controller_demo
Fork of HTTPD by
Homepage
Original HTTPD implementation of Suga koubou is great but has some bug inside unfortunately. The most critical bug was accessing buffer with the index of out of range like following.
problematic code
char buf[256]; n = httpd->_state[id].client->receive(buf, sizeof(buf)); buf[n] =0;
With above code, it could set buf[256] = 0 when more that 255 data is received. Setting buf[256] causes some other area of memory is corrupted so that system can be predictive status since than.
bug fixed code
n = httpd->_state[id].client->receive(buf, sizeof(buf)-1); buf[n] =0;
