Home | History | Annotate | Download | only in applypatch

Lines Matching refs:patch

17 // See imgdiff.c in this directory for a description of the patch file
33 * Apply the patch given in 'patch_filename' to the source data given
39 const Value* patch,
43 char* header = patch->data;
44 if (patch->size < 12) {
45 printf("patch too short to contain header\n");
53 printf("corrupt patch file header (magic number)\n");
62 if (pos + 4 > patch->size) {
66 int type = Read4(patch->data + pos);
70 char* normal_header = patch->data + pos;
72 if (pos > patch->size) {
82 patch, patch_offset, sink, token, ctx);
84 char* raw_header = patch->data + pos;
86 if (pos > patch->size) {
93 if (pos + data_len > patch->size) {
97 SHA_update(ctx, patch->data + pos, data_len);
98 if (sink((unsigned char*)patch->data + pos,
106 char* deflate_header = patch->data + pos;
108 if (pos > patch->size) {
128 // the patch was constructed with bonus data. The
176 // Next, apply the bsdiff patch (in memory) to the uncompressed
181 patch, patch_offset,
226 printf("patch chunk %d is unknown type %d\n", i, type);