[PATCH v2] builtin/apply: exit when parse_binary() fails

2016-03-19 Thread Christian Couder
In parse_binary() there is: forward = parse_binary_hunk(&buffer, &size, &status, &used); if (!forward && !status) /* there has to be one hunk (forward hunk) */ return error(_("unrecognized binary patch at line %d"), linenr-1); so parse_binary() can

Re: [PATCH v2] builtin/apply: exit when parse_binary() fails

2016-03-19 Thread Christian Couder
On Thu, Mar 17, 2016 at 10:23 AM, Christian Couder wrote: > In parse_binary() there is: ... Of course just after sending this I realized that I should probably change the title of the patch to something like "builtin/apply: handle parse_binary() failure". I will resend a v3 with the above change