Fossil

Changes On Branch pending-review
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch pending-review Excluding Merge-Ins

This is equivalent to a diff from 3604802d55 to 75ddc3687a

2016-10-05
12:59
Ensure that inputs to delta_create() are always memory aligned as if obtained from malloc(). ... (check-in: c91e487140 user: drh tags: trunk)
08:10
The changes in [b045d0774ed48936] are too far reaching. Instead, add a -keepNewline option and use it where appropriate. ... (check-in: 561402f2e0 user: mistachkin tags: trunk)
06:54
Given that the buffer may not actually be memory obtained by malloc(), make sure that it is, that checksum() doesn't fail an assertion. ... (Closed-Leaf check-in: 75ddc3687a user: andybradford tags: pending-review)
06:40
The 'manifest' setting still needs to be marked as 'versionable'. ... (check-in: 3604802d55 user: mistachkin tags: trunk)
06:39
Normalize TH1 script evaluation results used internally by the test suite. ... (check-in: 22c62dba30 user: mistachkin tags: trunk)

Changes to src/deltacmd.c.

27
28
29
30
31
32
33
34

35
36

37
38
39

40
41
42
43
44
45
46
27
28
29
30
31
32
33

34
35

36
37
38

39
40
41
42
43
44
45
46







-
+

-
+


-
+







*/
int blob_delta_create(Blob *pOriginal, Blob *pTarget, Blob *pDelta){
  const char *zOrig, *zTarg;
  int lenOrig, lenTarg;
  int len;
  char *zRes;
  blob_zero(pDelta);
  zOrig = blob_buffer(pOriginal);
  zOrig = blob_materialize(pOriginal);
  lenOrig = blob_size(pOriginal);
  zTarg = blob_buffer(pTarget);
  zTarg = blob_materialize(pTarget);
  lenTarg = blob_size(pTarget);
  blob_resize(pDelta, lenTarg+16);
  zRes = blob_buffer(pDelta);
  zRes = blob_materialize(pDelta);
  len = delta_create(zOrig, lenOrig, zTarg, lenTarg, zRes);
  blob_resize(pDelta, len);
  return 0;
}

/*
** COMMAND: test-delta-create