Nick Terrell
|
4db751668f
|
Fix buffer overrun in ZSTD_loadEntropy()
The table log set by `FSE_readNCount()` was not checked in
`ZSTD_loadEntropy()`. This caused `FSE_buildDTable(dctx->MLTable, ...)`
to overwrite the beginning of `dctx->hufTable`.
The benchmarks look good, there is no obvious performance regression:
> ./zstds/zstd.opt.0 -i10 -b1 -e5 ~/bench/silesia.tar
1#silesia.tar : 211988480 -> 73656930 (2.878), 268.2 MB/s , 701.0 MB/s
2#silesia.tar : 211988480 -> 70162842 (3.021), 199.5 MB/s , 666.9 MB/s
3#silesia.tar : 211988480 -> 66997986 (3.164), 154.9 MB/s , 655.6 MB/s
4#silesia.tar : 211988480 -> 66002591 (3.212), 128.9 MB/s , 648.4 MB/s
5#silesia.tar : 211988480 -> 65008480 (3.261), 98.4 MB/s , 633.4 MB/s
> ./zstds/zstd.opt.2 -i10 -b1 -e5 ~/bench/silesia.tar
1#silesia.tar : 211988480 -> 73656930 (2.878), 266.1 MB/s , 703.7 MB/s
2#silesia.tar : 211988480 -> 70162842 (3.021), 199.0 MB/s , 666.6 MB/s
3#silesia.tar : 211988480 -> 66997986 (3.164), 156.2 MB/s , 656.2 MB/s
4#silesia.tar : 211988480 -> 66002591 (3.212), 133.2 MB/s , 647.4 MB/s
5#silesia.tar : 211988480 -> 65008480 (3.261), 96.3 MB/s , 633.3 MB/s
|
2016-10-17 15:51:15 -07:00 |
|
Yann Collet
|
7933434fdf
|
Merge branch 'dev' of github.com:facebook/zstd into dev
|
2016-10-14 13:32:35 -07:00 |
|
Yann Collet
|
d4cda27b63
|
new command -M#, to limit memory usage during decompression (#403)
|
2016-10-14 13:32:20 -07:00 |
|
Nick Terrell
|
3b9cdf9220
|
Fix ubsan failures (pass NULL to memcpy)
|
2016-10-12 20:54:42 -07:00 |
|
Yann Collet
|
5d919e7ac3
|
added ZSTD_error_frameParameter_windowTooLarge (#403)
|
2016-10-12 17:29:24 -07:00 |
|
Nick Terrell
|
7158584399
|
Fix ZSTD_execSequence() edge case
|
2016-10-12 10:05:26 -07:00 |
|
Yann Collet
|
2f2639438a
|
zstreamtest can fuzztest pledgedSrcSize
|
2016-09-26 14:06:08 +02:00 |
|
Yann Collet
|
51f4d566c2
|
small decompression speed boost for very small data
|
2016-09-22 15:57:28 +02:00 |
|
Yann Collet
|
d7c6589df8
|
support ZSTD_sizeof_*() on NULL
added ZSTD_sizeof_CDict()
|
2016-09-15 02:57:27 +02:00 |
|
Yann Collet
|
e91c4b4cef
|
introduced ZSTD_resetDStream() .
added : ZSTD_sizeof_DDict()
|
2016-09-14 16:55:44 +02:00 |
|
Yann Collet
|
d092d77cfc
|
minor variable renaming
|
2016-09-14 16:14:57 +02:00 |
|
Yann Collet
|
26ec254066
|
new strategy for faster DDict decompression
|
2016-09-13 16:52:16 +02:00 |
|
Yann Collet
|
b3060f7a9e
|
changed streaming decoder behavior : now, when all compressed frame is consumed, it means decompression is completed, with regenerated data fully flushed.
|
2016-09-09 16:44:16 +02:00 |
|
Yann Collet
|
95d07d7447
|
introduced CHECK_E
|
2016-09-06 16:38:51 +02:00 |
|
Yann Collet
|
3e21ec5b01
|
introduced CHECK_F
|
2016-09-06 15:36:19 +02:00 |
|
Yann Collet
|
5c956d593c
|
FORCE_INLINE common definition
|
2016-09-06 15:05:19 +02:00 |
|
Yann Collet
|
7c83dfd5c2
|
ZSTD_frameHeaderSize_prefix (#340), as result of ZSTD_initStream
|
2016-09-05 19:47:43 +02:00 |
|
Yann Collet
|
1563bfeabc
|
fixing FORCE_INLINE for older compilers (#330)
|
2016-09-02 11:44:21 -07:00 |
|
David Lam
|
e10f7f3dcb
|
merge
|
2016-08-30 12:03:36 -07:00 |
|
Yann Collet
|
4ded9e591c
|
added boilerplate
|
2016-08-30 11:06:28 -07:00 |
|
David Lam
|
da9d3b7057
|
Cleanup some errors in typedef comments and remove duplicated HOWTO from zbuff_decompress.c
|
2016-08-29 17:31:51 -07:00 |
|
Yann Collet
|
23b6e05d8e
|
ZSTD_malloc() and ZSTD_free(), to simplify customMem
|
2016-08-28 21:05:43 -07:00 |
|
Yann Collet
|
5f53b0335e
|
fixed continuation context
|
2016-08-28 10:00:49 -07:00 |
|
Yann Collet
|
767d8f66fa
|
legacy contexts can be re-used
|
2016-08-28 08:19:47 -07:00 |
|
Yann Collet
|
4bf317dd00
|
first version supporting legacy streams (transparent decoding)
|
2016-08-28 07:43:34 -07:00 |
|
inikep
|
a3a47ec4d0
|
Merge remote-tracking branch 'refs/remotes/Cyan4973/dev' into Other
|
2016-08-24 21:25:49 +02:00 |
|
inikep
|
e416e30019
|
remove unnecessary comments
|
2016-08-24 17:32:09 +02:00 |
|
Yann Collet
|
17e482efdd
|
added ZSTD_setDStreamParameter()
|
2016-08-23 16:58:10 +02:00 |
|
Yann Collet
|
3071c3e303
|
STREAM_WINDOW_MAX : protect streaming from unreasonable memory requirements
|
2016-08-23 01:34:34 +02:00 |
|
Yann Collet
|
70e3b31306
|
fixed playtests on os-x
|
2016-08-23 01:18:06 +02:00 |
|
Yann Collet
|
cb3276329a
|
added sizeof CStream and DStream
|
2016-08-23 00:31:59 +02:00 |
|
Yann Collet
|
8baf78a291
|
minor coding style
|
2016-08-20 13:04:20 +02:00 |
|
Yann Collet
|
1bee2d5e08
|
slight decompression speed improvement
|
2016-08-20 02:59:04 +02:00 |
|
Yann Collet
|
18442c1482
|
minor refactoring
|
2016-08-18 01:40:32 +02:00 |
|
Yann Collet
|
53e17fbd5e
|
updated streaming API
|
2016-08-17 01:39:22 +02:00 |
|
Yann Collet
|
104e5b072d
|
added : streaming decompression API
|
2016-08-16 15:11:28 +02:00 |
|
inikep
|
038d1497c9
|
fixed compilation with Visual Studio 2005
|
2016-08-10 14:30:10 +02:00 |
|
Yann Collet
|
917fe188f1
|
Implemented repOffset "minus 1" on ll==0
|
2016-07-31 04:01:57 +02:00 |
|
Yann Collet
|
66f69e58d2
|
restore decompression speed on fizzle
|
2016-07-30 15:32:47 +02:00 |
|
Yann Collet
|
f714f59c16
|
fixed visual warning
|
2016-07-30 12:05:28 +02:00 |
|
Yann Collet
|
761f8dbbd2
|
back to normal table cell copy
|
2016-07-30 11:43:53 +02:00 |
|
Yann Collet
|
3c6b808870
|
minor decompression speed gains
|
2016-07-30 03:20:47 +02:00 |
|
Yann Collet
|
c00d30fbe4
|
Merge pull request #264 from inikep/dev08
Dev08
|
2016-07-29 17:42:30 +02:00 |
|
Yann Collet
|
4c5bbf64f9
|
fixed : frame concatenation without checksum
|
2016-07-28 20:30:25 +02:00 |
|
Yann Collet
|
60ba31c570
|
zbuff uses ZSTD_compressEnd()
|
2016-07-28 19:55:09 +02:00 |
|
Yann Collet
|
c991cc1828
|
new frame end, 32-bits checksums
|
2016-07-28 00:55:43 +02:00 |
|
inikep
|
003c7a8568
|
optimal parser: removed ZSTD_REP_INIT
|
2016-07-27 11:07:13 +02:00 |
|
Eric Biggers
|
0a55e7a0bb
|
ZSTD_decompressFrame(): use remainingSize instead of iend - ip
Same behavior, but no need to have redundant variables.
|
2016-07-26 13:22:27 -07:00 |
|
Eric Biggers
|
aa6c70bf60
|
ZSTD_decompressFrame(): pass up error code from ZSTD_decodeFrameHeader()
|
2016-07-26 13:22:27 -07:00 |
|
Eric Biggers
|
e4d0265ea9
|
Replace remaining references to "direct mode" with "single segment mode"
|
2016-07-26 13:22:27 -07:00 |
|