Am 02.04.2019 um 20:39 schrieb Mike Spenard:
Correct, I misspoke... I simply meant 'generated' fsdata.c rather than
compiled.
I traced the "mem_free: mem->used" bomb out to the 404.html missing from
fsdata.c
The http_get_404_file() function checks for it missing:
if (err != ERR_OK) {
/* 404.htm doesn't exist either. Indicate to the caller that it
should
* send back a default 404 page.
*/
*uri = NULL;
return NULL;
...however, http_find_file() doesn’t have any code to properly handle that
NULL:
Hmm, that might still be missing in HEAD, too. I never checked, I guess.
} else {
file = http_get_404_file(hs, &uri);
}
I assume this is why I end up with a pbuf structure of heap allocated by
never flagged as Used. Which causes free_mem() to bomb out ...?
Might be.
I'm a new player here, so has this been fixed in newer code than NXP
provided me with? Or am I misunderstanding things?
No, seems to be in here still. We had some handling for a compiled-in
default 404 page, don't know what happened to that.
Would you mind filing a bug so that this doesn't get forgotten?
Regards,
Simon
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users