patch_parse.c
26.6 KB
-
patch_parse: check if advancing over header newline succeeds · 723bdf48
While parsing patch header lines, we iterate over each line and check if the line has trailing garbage. What we do not check though is that the line is actually a line ending with a trailing newline. Fix this by checking the return code of `parse_advance_expected_str`.
Patrick Steinhardt committed