projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f118cf
)
Also Reset the Chain Table
author
W. Felix Handte
<w@felixhandte.com>
Fri, 20 Apr 2018 18:16:27 +0000
(14:16 -0400)
committer
W. Felix Handte
<w@felixhandte.com>
Fri, 20 Apr 2018 18:16:27 +0000
(14:16 -0400)
lib/lz4hc.c
patch
|
blob
|
history
diff --git
a/lib/lz4hc.c
b/lib/lz4hc.c
index
dff42f0
..
124da86
100644
(file)
--- a/
lib/lz4hc.c
+++ b/
lib/lz4hc.c
@@
-98,7
+98,7
@@
static void LZ4HC_init (LZ4HC_CCtx_internal* hc4, const BYTE* start)
uptrval startingOffset = hc4->end - hc4->base;
DEBUGLOG(4, "LZ4HC_init(%p, %p)", hc4, start);
if (startingOffset > 1 GB || startingOffset > (uptrval)start) {
-
MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable)
);
+
LZ4HC_clearTables(hc4
);
startingOffset = 0;
}
startingOffset += MAX_DISTANCE;