]> git.ozlabs.org Git - patchwork/commitdiff
parser: Fix parsing of patches with a trailing no-newline marker
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Mar 2015 03:39:24 +0000 (14:39 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 22 Mar 2015 13:27:09 +0000 (21:27 +0800)
If a patch ends with a "No newline at end of file" marker, it is
incorrectly considered part of the comment.

Add a testcase which shows the bug, and then fix the parser. The parser
fix is hopefully sufficiently specific so as to not break any other
unrelated case. But ..

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

No differences found