Bug fix - buffer overflow in file ($PRJ_DIR)/lwipWebServer/httpd.c

posted Jul 20, 2008, 11:27 AM by Stefano Oliveri   [ updated Jul 20, 2008, 11:39 AM ]
The web server uses a buffer (s_cDynamicPage) to generate a dynamic page showing information about all tasks running in the system (debug.htm). This buffer was too small for all demo tasks - about 40 tasks - and when a client queries the debug.htm page the system hung.
To fix the bug the buffer size was increased to 2048 byte ( #define webMAX_PAGE_SIZE    2048 ).