Commit f1513761 authored by Niels Möller's avatar Niels Möller

(do_read_line): Fixed buffer overrun, with

potential remote root compromise. XXX Fix in HEAD branch.

Rev: src/read_line.c:1.30.4.1
parent a44aef6a
......@@ -98,6 +98,8 @@ do_read_line(struct read_handler **h,
/* Too long line */
EXCEPTION_RAISE(self->e,
make_protocol_exception(0, "Line too long."));
return available;
}
/* Ok, now we have a line. Copy it into the buffer. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment