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,
42 char* header = patch->data;
43 if (patch->size < 12) {
44 printf("patch too short to contain header\n");
52 printf("corrupt patch file header (magic number)\n");
61 if (pos + 4 > patch->size) {
65 int type = Read4(patch->data + pos);
69 char* normal_header = patch->data + pos;
71 if (pos > patch->size) {
81 patch, patch_offset, sink, token, ctx);
83 char* raw_header = patch->data + pos;
85 if (pos > patch->size) {
92 if (pos + data_len > patch->size) {
96 SHA_update(ctx, patch->data + pos, data_len);
97 if (sink((unsigned char*)patch->data + pos,
105 char* deflate_header = patch->data + pos;
107 if (pos > patch->size) {
163 // Next, apply the bsdiff patch (in memory) to the uncompressed
168 patch, patch_offset,
213 printf("patch chunk %d is unknown type %d\n", i, type);