Re: [PATCH] Allow emails with boundaries to work again
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 13, 2008, 23:45 UTC
- Message-ID
- <7vbpzwjx8d.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1218667559-26618-1-git-send-email-dzickus@redhat.com>
Don Zickus <dzickus@redhat.com> writes:
> Recent changes to is_multipart_boundary() caused git-mailinfo to segfault. > The reason was after handling the end of the boundary the code tried to look > for another boundary. Because the boundary list was empty, dereferencing > the pointer to the top of the boundary caused the program to go boom.
We keep fixing and breaking this thing, don't we? Can we have a testcase to protect this codepath?