Changeset 32644


Ignore:
Timestamp:
2012-07-07T18:43:27+02:00 (6 years ago)
Author:
jow
Message:

[package] uhttpd: do not dispatch pipe error events, fixes use after free for cgi and lua scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uhttpd/src/uhttpd.c

    r32640 r32644  
    574574        struct client *cl = container_of(u, struct client, pipe); 
    575575 
    576         D("SRV: Client(%d) pipe(%d) readable\n", cl->fd.fd, cl->pipe.fd); 
    577  
    578         uh_client_cb(&cl->fd, ULOOP_WRITE); 
     576        if (!u->error) 
     577        { 
     578                D("SRV: Client(%d) pipe(%d) readable\n", 
     579                  cl->fd.fd, cl->pipe.fd); 
     580 
     581                uh_client_cb(&cl->fd, ULOOP_WRITE); 
     582        } 
    579583} 
    580584 
Note: See TracChangeset for help on using the changeset viewer.