From: Junio C Hamano Date: Tue, 6 Sep 2005 23:46:34 +0000 (-0700) Subject: mailinfo: barf and exist upon nested multipart. X-Git-Tag: v0.99.6~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b893f09104ee5f1d8710dfe17cdf1cbac995f17a;p=git.git mailinfo: barf and exist upon nested multipart. At least we can detect what we do not handle. Signed-off-by: Junio C Hamano --- diff --git a/tools/mailinfo.c b/tools/mailinfo.c index ef2add7a..df470bb9 100644 --- a/tools/mailinfo.c +++ b/tools/mailinfo.c @@ -152,6 +152,10 @@ static int handle_subcontent_type(char *line) /* We do not want to mess with boundary. Note that we do not * handle nested multipart. */ + if (strcasestr(line, "boundary=")) { + fprintf(stderr, "Not handling nested multipart message.\n"); + exit(1); + } slurp_attr(line, "charset=", charset); if (*charset) { int i, c;