diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-02-17 09:14:19 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-02-17 09:14:19 +0000 |
commit | f6cfb03ce353ba50c4d8d981014c038acc363e10 (patch) | |
tree | 56ed5a35d19ed926cf49968731d0b7026f9ba33c /xdelta3/xdelta3.h | |
parent | 21fbdf82621e2397ef244fe8bbbb76e49bf89f29 (diff) |
generic encode tables compiled in setup.py; comments on HARDMAXWINSZ; more winsize tests
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r-- | xdelta3/xdelta3.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h index cee63cf..b4c0a4e 100644 --- a/xdelta3/xdelta3.h +++ b/xdelta3/xdelta3.h | |||
@@ -51,10 +51,9 @@ | |||
51 | 51 | ||
52 | /* The XD3_HARDMAXWINSIZE parameter is a safety mechanism to protect decoders against | 52 | /* The XD3_HARDMAXWINSIZE parameter is a safety mechanism to protect decoders against |
53 | * malicious files. The decoder will never decode a window larger than this. If the file | 53 | * malicious files. The decoder will never decode a window larger than this. If the file |
54 | * specifies VCD_TARGET the decoder may require two buffers of this size. Rationale for | 54 | * specifies VCD_TARGET the decoder may require two buffers of this size. |
55 | * choosing 22-bits as a maximum: this means that in the worst case, any VCDIFF address | 55 | * |
56 | * without a copy window will require 3 bytes to encode (7 bits per byte, HERE and SAME | 56 | * 8-16MB is reasonable, probably don't need to go larger. |
57 | * modes making every address within half the window away. */ | ||
58 | #ifndef XD3_HARDMAXWINSIZE | 57 | #ifndef XD3_HARDMAXWINSIZE |
59 | #define XD3_HARDMAXWINSIZE (1U<<24) | 58 | #define XD3_HARDMAXWINSIZE (1U<<24) |
60 | #endif | 59 | #endif |
@@ -64,7 +63,7 @@ | |||
64 | * seekable, they are decompressed to a temporary file location and the user may not wish | 63 | * seekable, they are decompressed to a temporary file location and the user may not wish |
65 | * for this. */ | 64 | * for this. */ |
66 | #ifndef XD3_NODECOMPRESSSIZE | 65 | #ifndef XD3_NODECOMPRESSSIZE |
67 | #define XD3_NODECOMPRESSSIZE (1U<<24) | 66 | #define XD3_NODECOMPRESSSIZE (1U<<28) |
68 | #endif | 67 | #endif |
69 | 68 | ||
70 | /* The IOPT_SIZE value sets the size of a buffer used to batch overlapping copy | 69 | /* The IOPT_SIZE value sets the size of a buffer used to batch overlapping copy |