• Nick Mathewson's avatar
    When parsing a multiline controller command, be careful with linebreaks · dbfe1a14
    Nick Mathewson authored
    The first line break in particular was mishandled: it was discarded
    if no arguments came before it, which made it impossible to
    distinguish arguments from the first line of the body.
    To solve this, we need to allocate a copy of the command rather than
    using NUL to separate it, since we might have "COMMAND\n" as our input.
    Fixes ticket 29984.