• Kim Vandry's avatar
    Fix string overrun bugs in nvp.c · 1305fc13
    Kim Vandry authored
    Previously, names and values that exceeded 256 bytes in length would
    smash the stack during parsing headers like Content-Foo: thing; key=val
    Now we copy these tokens after each one is collected instead of
    character-by-character as we go, so we avoid using fixed-size buffers.
    
    Fixes rc0/mairix#7, Fixes rc0/mairix#5, Fixes rc0/mairix#14
    1305fc13
nvp.c 11.1 KB