projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5831b56
)
git-apply: bad patch fragments are fatal
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Mon, 23 May 2005 19:31:59 +0000
(12:31 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Mon, 23 May 2005 19:31:59 +0000
(12:31 -0700)
Don't just stop at them and look for the next header. Die,
die, die!
apply.c
patch
|
blob
|
history
diff --git
a/apply.c
b/apply.c
index
85d7965
..
536b068
100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-240,7
+240,7
@@
static int apply_single_patch(char *line, unsigned long size)
while (size > 4 && !memcmp(line, "@@ -", 4)) {
int len = apply_fragment(line, size);
if (len <= 0)
-
break
;
+
die("corrupt patch")
;
printf("applying fragment:\n%.*s\n\n", len, line);