X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=apply.c;h=4ed4b271691a4cf5db0f6c1df73fae1cb891741f;hb=7e3b9d15344fa5a09fe5c70270c9f2c2f75d0f90;hp=44bc31d6eb5b42d4077eff458246cde376cb6785;hpb=e1eb13347610bd5b062377f2e8d7f807c6e89d07;p=thirdparty%2Fgit.git diff --git a/apply.c b/apply.c index 44bc31d6eb..4ed4b27169 100644 --- a/apply.c +++ b/apply.c @@ -1917,6 +1917,7 @@ static struct fragment *parse_binary_hunk(struct apply_state *state, state->linenr++; buffer += llen; + size -= llen; while (1) { int byte_length, max_byte_length, newsize; llen = linelen(buffer, size);