Commit 70cb725d authored by Chris Lamb's avatar Chris Lamb 💬

Don't crash on malformed md5sums files. (Closes: #877473)

parent 07c05626
......@@ -55,7 +55,8 @@ def from_raw_reader(in_file, filter=lambda buf: buf):
# python buffering; force a flush here to avoid this,
# see
end_nl = buf[-1] == '\n'
if buf:
end_nl = buf[-1] == '\n'
if h is not None and line_count >= max_lines:
out_file.write("[ Too much input for diff (SHA1: {}) ]\n".format(
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