Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Delta checksum verification is disabled by default, for better performance. It can be reenabled using -DFOSSIL_ENABLE_DELTA_CKSUM_TEST. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
d3a46b2a45b92bbcd196ab78fd22426c |
| User & Date: | drh 2017-10-05 11:37:25.823 |
Context
|
2017-10-05
| ||
| 11:41 | Only show hyperlinks to the /mlink page to admin users. check-in: dead084ee5 user: drh tags: trunk | |
| 11:37 | Delta checksum verification is disabled by default, for better performance. It can be reenabled using -DFOSSIL_ENABLE_DELTA_CKSUM_TEST. check-in: d3a46b2a45 user: drh tags: trunk | |
| 11:03 | Minor formatting changes the the /mlink page. check-in: a73ed0d2f5 user: drh tags: trunk | |
Changes
Changes to src/delta.c.
| ︙ | ︙ | |||
569 570 571 572 573 574 575 |
int lenSrc, /* Length of the source file */
const char *zDelta, /* Delta to apply to the pattern */
int lenDelta, /* Length of the delta */
char *zOut /* Write the output into this preallocated buffer */
){
unsigned int limit;
unsigned int total = 0;
| | | 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 |
int lenSrc, /* Length of the source file */
const char *zDelta, /* Delta to apply to the pattern */
int lenDelta, /* Length of the delta */
char *zOut /* Write the output into this preallocated buffer */
){
unsigned int limit;
unsigned int total = 0;
#ifdef FOSSIL_ENABLE_DELTA_CKSUM_TEST
char *zOrigOut = zOut;
#endif
limit = getInt(&zDelta, &lenDelta);
if( *zDelta!='\n' ){
/* ERROR: size integer not terminated by "\n" */
return -1;
|
| ︙ | ︙ | |||
626 627 628 629 630 631 632 |
zDelta += cnt;
lenDelta -= cnt;
break;
}
case ';': {
zDelta++; lenDelta--;
zOut[0] = 0;
| | | 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 |
zDelta += cnt;
lenDelta -= cnt;
break;
}
case ';': {
zDelta++; lenDelta--;
zOut[0] = 0;
#ifdef FOSSIL_ENABLE_DELTA_CKSUM_TEST
if( cnt!=checksum(zOrigOut, total) ){
/* ERROR: bad checksum */
return -1;
}
#endif
if( total!=limit ){
/* ERROR: generated size does not match predicted size */
|
| ︙ | ︙ |
Changes to src/main.c.
| ︙ | ︙ | |||
947 948 949 950 951 952 953 |
#if defined(FOSSIL_HAVE_FUSEFS)
blob_appendf(pOut, "libfuse %s, loaded %s\n", fusefs_inc_version(),
fusefs_lib_version());
#endif
#if defined(FOSSIL_DEBUG)
blob_append(pOut, "FOSSIL_DEBUG\n", -1);
#endif
| | | | 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 |
#if defined(FOSSIL_HAVE_FUSEFS)
blob_appendf(pOut, "libfuse %s, loaded %s\n", fusefs_inc_version(),
fusefs_lib_version());
#endif
#if defined(FOSSIL_DEBUG)
blob_append(pOut, "FOSSIL_DEBUG\n", -1);
#endif
#if defined(FOSSIL_ENABLE_DELTA_CKSUM_TEST)
blob_append(pOut, "FOSSIL_ENABLE_DELTA_CKSUM_TEST\n", -1);
#endif
#if defined(FOSSIL_ENABLE_LEGACY_MV_RM)
blob_append(pOut, "FOSSIL_ENABLE_LEGACY_MV_RM\n", -1);
#endif
#if defined(FOSSIL_ENABLE_EXEC_REL_PATHS)
blob_append(pOut, "FOSSIL_ENABLE_EXEC_REL_PATHS\n", -1);
#endif
|
| ︙ | ︙ |