Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
vcs-svn: verify that deltas consume all inline data
[gitweb.git]
/
vcs-svn
/
svndiff.c
diff --git
a/vcs-svn/svndiff.c
b/vcs-svn/svndiff.c
index ed1d4a08be83b2255fb967b628d24483ba782a5c..fb7dc22f92d763382e952debcc2196d35cbf2b67 100644
(file)
--- a/
vcs-svn/svndiff.c
+++ b/
vcs-svn/svndiff.c
@@
-208,6
+208,8
@@
static int apply_window_in_core(struct window *ctx)
)
if (execute_one_instruction(ctx, &instructions, &data_pos))
return -1;
+ if (data_pos != ctx->data.len)
+ return error("invalid delta: does not copy all inline data");
return 0;
}