buglwIP - A Lightweight TCP/IP stack - Bugs: bug #56057, HTTPd: 404 missing from fsdata.c...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56057: HTTPd: 404 missing from fsdata.c causes sys_assert()

Submitter:  Mike Spenard <mikespenard>
Submitted:  Tue 02 Apr 2019 07:19:51 PM UTC
   
 
Category:  apps Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Invalid
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  Other

Thu 30 Jan 2020 10:44:11 PM UTC, comment #1: 

Works for me. Either you have an old version or there's something different with your file system...

Closing as invalid, please reopen or post a comment if it still doesn't work for you.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 02 Apr 2019 07:19:51 PM UTC, original submission:  

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:

    } else {
      file = http_get_404_file(hs, &uri);
    }

Which causes free_mem() to bomb out with "mem_free: mem->Used"



Mike Spenard <mikespenard>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by mikespenard (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-30 goldsimon StatusNone Invalid
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code