• wm4's avatar
    http: avoid out of bound accesses on broken Set-Cookie headers · c0687acb
    wm4 authored
    It's trivial to craft a HTTP response that will make the code for
    skipping trailing whitespace access and possibly overwrite bytes outside
    of the memory allocation. Why this can happen is blindingly obvious: it
    accesses cstr[strlen(cstr)-1] without checking whether the string is
    empty.
    c0687acb
http.c 62.4 KB