Good eyes. This would have broken if (1) we had a header field that consists of a single character and then LF. We would have mistaken such a line as the end of header; or (2) we had a commit or a tag that consists solely of header and no body. We would have read past the terminating NUL. Thanks. -
Good eyes. This would have broken if
(1) we had a header field that consists of a single character and then LF. We would have mistaken such a line as the end of header; or
(2) we had a commit or a tag that consists solely of header and no body. We would have read past the terminating NUL.
Thanks.
-
Well, Valgrind found it when I did: I suspect that the end of the header was not properly detected, so that it may have read one byte past a body ending with LF and the terminating NUL. Christian. -
Well, Valgrind found it when I did:
I suspect that the end of the header was not properly detected, so that it may have read one byte past a body ending with LF and the terminating NUL.
Christian.