Commit Graph

456 Commits (135f319bb2fe003ea5d36f3e0608fb9a95714188)

Author SHA1 Message Date
inikep e9f30eae4b 40970636 2016-02-03 12:53:07 +01:00
Yann Collet b010b3b627 Fixed decoding error (afl) 2016-02-03 12:39:34 +01:00
Yann Collet 72bff50ecf Updated error API, following suggestions by @nemequ (#116) 2016-02-03 12:06:24 +01:00
Yann Collet ae7aa06650 lots of minor refactorings 2016-02-03 02:46:46 +01:00
Yann Collet 7d968c7bdd move _usingDict() to stable API (zstd.h) 2016-02-03 02:11:32 +01:00
Yann Collet 464fa996e9 added v0.4 legacy support 2016-02-03 01:09:46 +01:00
inikep 5391a718a4 fixed 2016-02-03 00:04:14 +01:00
inikep 55bc9a868a 41374379 2016-02-02 19:47:09 +01:00
inikep 5d4131067b update 2016-02-02 17:41:21 +01:00
Yann Collet 7d8e6bddb9 changed long length format 2016-02-02 17:30:37 +01:00
inikep d6e8cc5f0c 41403384 2016-02-02 16:43:31 +01:00
Yann Collet 7a6343fb1b fixed encoding bugs 2016-02-02 16:00:50 +01:00
inikep e1b8e53e84 better logging 2016-02-02 15:41:16 +01:00
Yann Collet 2ce4923238 modified buffer management rules 2016-02-02 14:36:49 +01:00
inikep 59140c5480 turn off: last match must start at a minimum distance of 8 from oend 2016-02-02 12:36:09 +01:00
inikep ef2706ed12 in progress 2016-01-31 15:32:01 +01:00
inikep 6b0715b8fd no "start" 2016-01-31 15:17:50 +01:00
inikep d4c3e8c595 fixed logs 2016-01-31 14:28:26 +01:00
inikep c0dc4c361d best_off 2016-01-31 12:36:41 +01:00
inikep 9bfb1a3357 working 2016-01-31 12:17:16 +01:00
inikep ee4be5e981 ZSTD_compressBlock_opt_generic 2016-01-31 11:57:01 +01:00
inikep e2bfe2407a GetAllMatches 2016-01-31 11:26:05 +01:00
inikep c71568fd44 ZSTD_opt 2016-01-31 11:26:04 +01:00
Yann Collet 35f7de52c8 fixed Visual warnings 2016-01-31 02:51:03 +01:00
Yann Collet 61e16ce07c minor optimization for small files 2016-01-31 02:04:15 +01:00
Yann Collet e93d6ced17 minor compression gain 2016-01-31 00:58:06 +01:00
Yann Collet fd416f1eaf added : ZSTD_compress_usingPreparedCCtx() 2016-01-30 03:14:15 +01:00
Yann Collet 863ec40f1e minor compression speed improvement 2016-01-28 17:56:33 +01:00
Yann Collet 9cadd0853c add basic tests 2016-01-28 15:39:52 +01:00
Yann Collet 4ddb1f5566 optimized counting of small segments 2016-01-28 03:24:53 +01:00
Yann Collet fb810d6053 changed dictionary format 2016-01-28 00:21:13 +01:00
Yann Collet 1c8e194297 modified streaming compression API 2016-01-26 16:31:22 +01:00
Yann Collet 7b51a2948f modified streaming decompression API 2016-01-26 15:58:49 +01:00
Yann Collet b923f65076 introduced dictionary format 2016-01-26 03:14:20 +01:00
Yann Collet bc4c8aa4b7 fixed new MIN_CBLOCK_SIZE 2016-01-25 17:26:01 +01:00
Yann Collet 3742219b4e fixed decompression bugs 2016-01-25 16:54:05 +01:00
Yann Collet a1249dc8da fix visual warnings 2016-01-25 04:22:03 +01:00
Yann Collet afe0709964 stream control 2016-01-25 04:10:46 +01:00
Yann Collet 59d1f79768 variable litblock header size 2016-01-23 19:28:41 +01:00
Yann Collet a768a301ba fixed VS project 2016-01-21 16:04:35 +01:00
Yann Collet ffec740d37 fixed visual and clang errors 2016-01-21 15:50:11 +01:00
Yann Collet 977f1f3600 modified error system, following suggestions by @nemequ 2016-01-21 15:38:47 +01:00
Yann Collet 74ce8e812c fixed VS 2015 'ERROR already defined', reported by Rich Geldreich 2016-01-21 14:32:41 +01:00
Yann Collet 7beaa05d81 fixed bt bug 2016-01-21 11:57:45 +01:00
Yann Collet 1840d6af33 bench pay attention to variable block sizes 2016-01-20 15:39:06 +01:00
Yann Collet fba6aed175 changed : ZSTD_LEGACY_SUPPORT set to 0 by default within `zstd_decompress.c` (#113) 2016-01-18 12:03:54 +01:00
Yann Collet a87278a4f0 small compression speed 2016-01-17 00:12:55 +01:00
Yann Collet 3a3b72f25a Implemented ZSTD_HEAPMODE for zstd_decompress.c
Reduce cmake version requirement to 2.8.7
2016-01-11 12:56:11 +01:00
Yann Collet 523b594233 fixed read error 2016-01-09 02:10:40 +01:00
Yann Collet b012510d9f dictionary with block API 2016-01-09 02:00:10 +01:00
Yann Collet bf42c8e5d8 block-level API 2016-01-09 01:08:23 +01:00
Yann Collet c64c100658 fixed : unused variable 2016-01-08 17:54:02 +01:00
Yann Collet 600962711d added duplication tests 2016-01-08 17:27:50 +01:00
Yann Collet 6e1c4c6c65 fixed context copy 2016-01-07 23:07:44 +01:00
Yann Collet ecd651bd91 added ZSTD_duplicateCCtx() 2016-01-07 15:35:18 +01:00
Yann Collet 494c786a3b fixed outstanding strict aliasing warnings 2016-01-06 12:54:02 +01:00
Yann Collet 1fdd82312d Fixed : strict aliasing warnings in legacy decoders 2016-01-06 12:35:42 +01:00
Yann Collet 218bd31942 minor strict aliasing warning 2016-01-06 02:19:55 +01:00
Yann Collet 3b994cb465 updated fse 2016-01-06 01:58:37 +01:00
Yann Collet 96ffa424eb minor fast mode improvement 2016-01-02 01:16:28 +01:00
Yann Collet 2cc12cb3cb minor refactoring 2016-01-01 07:47:58 +01:00
Yann Collet 1358f91ec4 minor refactoring 2016-01-01 07:29:39 +01:00
Yann Collet 72e84cfd0f minor simplification 2015-12-31 19:08:44 +01:00
Yann Collet 722504c2a0 update version to 0.4.6 2015-12-31 18:32:15 +01:00
Yann Collet 5f9f98768a Makefile version automatically follows zstd.h 2015-12-30 19:52:08 +01:00
Yann Collet 48da164f14 fixed clang warnings 2015-12-29 23:40:02 +01:00
Yann Collet ee3f4515c1 faster hc mode with repetitive data (experimental) 2015-12-29 22:26:09 +01:00
Yann Collet d94efbf95c fix fast mode on Windows 2015-12-29 14:29:08 +01:00
Yann Collet 1ac364d60b Merge pull request #99 from KrzysFR/dev
Update version to 0.4.5 in zstdlib resources
2015-12-21 10:19:26 +01:00
Yann Collet ed73ae8c67 fix #101 2015-12-19 19:51:42 +01:00
Christophe Chevalier 8972f13b4a Added missing ZSTDLIB_API for ZSTD_decompress_usingDict and ZSTD_decompressDCtx 2015-12-18 11:20:37 +01:00
Yann Collet 31683c0b28 benchmark can use dictionary 2015-12-18 01:26:48 +01:00
Yann Collet fdcad6d3e1 added ZSTD_compress_usingDict() 2015-12-17 23:50:15 +01:00
Yann Collet deb078b9b1 added : -m : decompress multiple files 2015-12-17 20:30:14 +01:00
Yann Collet f54f57023c update params for 256K 2015-12-16 19:38:54 +01:00
Yann Collet 0700585fb9 fixed asan warning 2015-12-12 12:54:48 +01:00
Yann Collet 188b6ed6c7 fixed g++ warning 2015-12-12 12:44:44 +01:00
Yann Collet 3a061a4c9f extended static dictionary to buffered mode 2015-12-12 11:17:42 +01:00
Yann Collet 6c3e2e7855 fixed : high compression modes for Windows 32 bits 2015-12-11 10:44:07 +01:00
Yann Collet 9f5ab1a4f5 fix 32-bits windows decoding on high-compression archives 2015-12-11 00:27:41 +01:00
Christophe Chevalier 2abb04d90d Added ZSTDLIB_API to new ZSTD_maxCLevel method 2015-12-09 23:55:23 +01:00
Christophe Chevalier 7b05324a71 Only define ZSTDLIB_API when building a Windows DLL 2015-12-09 17:12:12 +01:00
Christophe Chevalier 844baf4fc5 Merge remote-tracking branch 'upstream/dev' into zstdlib_api 2015-12-09 15:45:57 +01:00
Yann Collet d608088ca3 added : ZSTD_maxCLevel()
added : 256KB blocks mode
2015-12-09 09:05:22 +01:00
Yann Collet 0cde77bc5e fixed comment (reported by @annulen) 2015-12-08 14:47:46 +01:00
Christophe Chevalier d2199e7250 Added ZSTDLIB_API definition to zstd_buffered.h which does not seem to include zstd.h 2015-12-07 19:01:41 +01:00
Christophe Chevalier c6e845398a Add ZSTDLIB_API macro to prefix all exported methods with__declspec(dllexport) when building a DLL (on windows) 2015-12-07 17:48:53 +01:00
Yann Collet 4bfe415fa7 validated external dictionary 2015-12-06 13:18:37 +01:00
Yann Collet e47c4e5f8e strengthened bufferless streaming decompression 2015-12-05 09:23:53 +01:00
Yann Collet 417890cec2 strengthened streaming bufferless compression 2015-12-04 17:16:37 +01:00
Yann Collet 6a2f03295c update version to 0.4.2 2015-12-02 15:05:22 +01:00
Yann Collet 120230b895 compress uses less memory for small blocks 2015-12-02 14:00:45 +01:00
Yann Collet a308259afa new : parameters for <= 16KB 2015-12-02 13:38:48 +01:00
Peter Harris f06e238d6f Fix compression on Big Endian CPUs 2015-12-01 14:58:24 -05:00
Yann Collet c620b48489 revert install to normal zstd due to travis limitation (likely gcc 4.6) 2015-12-01 01:56:02 +01:00
Yann Collet 44287a3bf4 refactored decompress (#82) 2015-11-30 23:13:56 +01:00
Yann Collet aead1bf86b changed to ZSTD_LEGACY_SUPPORT=0, as suggested within #80 2015-11-30 14:18:47 +01:00
Yann Collet daa1c65500 fixed #81 : removed dead file (reported by @inikep) 2015-11-30 12:25:48 +01:00
Yann Collet a85a8dd94a Fixed #80 (reported by @luben)
Added : tests for ZSTD_LEGACY=disable build mode
extended ZSTD_LEGACY=disable to dll build
2015-11-30 11:53:11 +01:00
Yann Collet 375727310c fixed compression bug 2015-11-29 03:17:04 +01:00
Yann Collet 7fe531e7ec fixed address space overflow (32-bits mode) 2015-11-29 02:38:09 +01:00
Yann Collet 52732b505d fixed huff0 decoder (32-bits mode) 2015-11-28 22:03:08 +01:00
Yann Collet bf7aa3c14e fixed decoder error (rollbuffer mode) 2015-11-28 18:19:44 +01:00
Yann Collet ad50c59bb7 fixed decoder error (32-bits mode, malicious input) 2015-11-28 17:09:28 +01:00
Yann Collet 00fd7a2110 protect 32-bits mode 2015-11-28 16:03:22 +01:00
Yann Collet 53fbf01370 minor level change 2015-11-28 14:08:01 +01:00
Yann Collet 800fa6c378 stronger tests for zbuff decompression 2015-11-27 14:30:23 +01:00
Yann Collet 31d1806a77 zbuff properly supports small dst buffers 2015-11-27 14:07:36 +01:00
Yann Collet 944042ab7d coalesce block+header size (buffered mode) 2015-11-27 13:26:38 +01:00
Yann Collet d248aa1c62 fixed hang bug (infinite loop) in decoder, buffered mode, malicious input 2015-11-26 22:39:29 +01:00
Yann Collet 661b94fb5d fixed potential warning on undefine, reported by Maciej Adamczyk 2015-11-26 16:42:06 +01:00
Yann Collet 29a58c94f6 fixed lib makefile 2015-11-26 16:25:56 +01:00
Yann Collet 26fa696713 minor API change 2015-11-26 16:07:08 +01:00
Yann Collet 29a2c838c5 support for legacy 0.3 format 2015-11-26 16:02:04 +01:00
Yann Collet c2ce890ac2 fixed bug in legacy decoder v0.2, reported by Maciej Adamczyk 2015-11-26 14:12:23 +01:00
Yann Collet 26415d3ff2 fixed leak 2015-11-26 12:43:28 +01:00
Yann Collet 6bcdeac954 fixed asan warning 2015-11-26 11:43:00 +01:00
Yann Collet 5f2ec63852 fixed decompression bug (buffered mode) 2015-11-26 10:32:17 +01:00
Yann Collet 91a97960f7 Added zbufftest 2015-11-26 09:59:49 +01:00
Yann Collet e4fdad55dc fixed minor decompression bug in buffered mode 2015-11-25 21:09:17 +01:00
Yann Collet d3cb690156 fixed leak issue 2015-11-25 15:26:55 +01:00
Yann Collet 377b9e8b94 fixed : potential malloc error 2015-11-25 15:04:37 +01:00
Yann Collet 7b2c31043c fixed : potential malloc error 2015-11-25 15:02:46 +01:00
Yann Collet 88fcd2916e Added : zstd buffered API 2015-11-25 14:42:45 +01:00
Yann Collet c36521571e fixed large buffers bug 2015-11-24 14:06:07 +01:00
Yann Collet 225179dd05 more tests (bt modes) 2015-11-23 16:52:22 +01:00
Yann Collet 239cc289d3 fixed asan bugs 2015-11-23 16:17:21 +01:00
Yann Collet 03526e18fa preliminary rollbuffer support for bt mode 2015-11-23 15:29:15 +01:00
Yann Collet c1e52f0f05 hc simplication 2015-11-23 14:37:59 +01:00
Yann Collet 06eade5102 comments 2015-11-23 14:23:47 +01:00
Yann Collet 5054ee0cc0 rollbuffer refactor 2015-11-23 13:34:21 +01:00
Yann Collet d7233d6e14 more compression tests 2015-11-22 14:40:51 +01:00
Yann Collet 287b7d9607 small hc speed improvement 2015-11-22 13:24:05 +01:00
Yann Collet 428619ccd7 small cLevel update 2015-11-22 12:46:30 +01:00
Yann Collet a85c77b9d3 fixed roll buffer lazy2 mode 2015-11-22 12:22:04 +01:00
Yann Collet b7fc88eec7 fixed roll buffer lazy mode 2015-11-22 03:12:28 +01:00
Yann Collet 734aa92ed5 fixed roll buffer greedy mode 2015-11-22 03:01:33 +01:00
Yann Collet 9a24e5986b fixed roll buffer in fast mode 2015-11-22 02:53:43 +01:00
Yann Collet 007c1c6ff0 minor cr improvement 2015-11-22 02:42:28 +01:00
Yann Collet 7a23179779 small fast compression improvement 2015-11-21 15:27:35 +01:00
Yann Collet 402fdcf1a3 fixed asan 2015-11-20 12:46:08 +01:00
Yann Collet 55aa7f94e3 modified format 2015-11-20 12:04:52 +01:00
Yann Collet 743402cb23 modified format 2015-11-20 12:03:53 +01:00
Yann Collet 7dfd56be4a restored fix small blocks 2015-11-19 17:46:29 +01:00
Yann Collet c95f899725 refactored greedy 2015-11-19 17:28:35 +01:00
Yann Collet b3a2af970e refactored decompression 2015-11-19 17:13:19 +01:00
Yann Collet 110cc14bab fixed bug #73 notified by @nemequ 2015-11-19 12:02:28 +01:00
Yann Collet dcac00e7a6 update library builder 2015-11-19 11:23:44 +01:00
Yann Collet b2549846ba more tests 2015-11-18 11:29:32 +01:00
Yann Collet 94b9d8ec8d fix compression bug in rollbuffer mode 2015-11-17 16:14:55 +01:00
Yann Collet 138e89c9c4 fix compression bug (extDict mode) 2015-11-17 14:26:54 +01:00
Yann Collet 786eb7d42e fixed repcode bug 2015-11-17 12:23:53 +01:00
Yann Collet 82368cfa1b comment 2015-11-16 19:10:56 +01:00
Yann Collet eaa5f75b99 fixed decompression bug 2015-11-15 11:13:41 +01:00
Yann Collet 93a823ccb7 fixed asan warnings 2015-11-13 15:08:43 +01:00
Yann Collet 89db5e001d rolling buffer preliminary support for fast mode 2015-11-13 11:27:46 +01:00
Yann Collet 0f366c61ed fixed streaming decoder 2015-11-12 16:19:30 +01:00
Yann Collet 5b78d2f20c basic rolling buffer support in decoder 2015-11-12 15:36:05 +01:00
Yann Collet 14983e7aed refactored compression code 2015-11-11 21:38:21 +01:00
Yann Collet 7f6e91fa98 fixed library compilation 2015-11-11 14:39:50 +01:00
Yann Collet 5be2dd25f2 Changed Library source tree
- no more zstdhc ; zstd.h is enough
- ZSTD_compress() now needs a compressionLevel
- separated zstd_compress.c and zstd_decompress.c
- updated zstdcli, fullbench, fuzzer with new API
2015-11-11 13:43:58 +01:00
Yann Collet 530918b409 level tuning 2015-11-10 10:52:58 +01:00
Yann Collet 9f432926b4 fileio can use small blocks params 2015-11-09 17:42:17 +01:00
Yann Collet 43e0cd512a small blocks params 2015-11-09 16:38:17 +01:00
Yann Collet 4baee50728 fix bug 2015-11-09 03:19:33 +01:00
Yann Collet d1ade5a61d fix 32-bits mode 2015-11-08 15:49:20 +01:00
Yann Collet e9eba608c2 simplified bt 2015-11-08 15:08:03 +01:00
Yann Collet 31d00ba4b3 fix bt bug 2015-11-08 14:11:29 +01:00
Yann Collet 72a8e751f4 level tuning 2015-11-07 22:24:46 +01:00
Yann Collet f48e35c206 minor bt improvements 2015-11-07 01:13:31 +01:00
Yann Collet a81d9ac42d minor bt CSpeed 2015-11-06 19:03:59 +01:00
Yann Collet 628065cf98 revert 2015-11-06 18:44:54 +01:00
Yann Collet 9b8e453713 minor CRatio improvement 2015-11-06 18:28:02 +01:00
Yann Collet 47cfa9a985 minor CRatio improvement 2015-11-06 17:13:46 +01:00
Yann Collet eb283710dd minor greedy CRatio improvement 2015-11-06 16:33:11 +01:00
Yann Collet fc2afcfa64 small Cspeed increase 2015-11-06 15:40:14 +01:00
Yann Collet 444873f494 minor greedy mod 2015-11-06 11:48:56 +01:00
Yann Collet 805a52a773 fixed asan warning 2015-11-06 10:52:17 +01:00
Yann Collet 8ad12ec343 level tuning 2015-11-06 10:19:00 +01:00
Yann Collet f12c1304a8 integrate fast mode 2015-11-05 18:16:59 +01:00
Yann Collet 1f44b3f778 added fast mode 2015-11-05 17:32:18 +01:00
Yann Collet 47b68908b2 rename lazy2 2015-11-05 15:14:17 +01:00
Yann Collet 9036105b62 simplified source 2015-11-05 15:03:12 +01:00
Yann Collet 5106a76dc9 merged strats 2015-11-05 15:00:24 +01:00
Yann Collet 43ae161fe9 level tuning 2015-11-05 11:58:02 +01:00
Yann Collet 92309cb37e level tuning 2015-11-05 00:48:37 +01:00
Yann Collet 3137d1a059 fix fuzzer32 litCSize limit condition 2015-11-04 23:36:36 +01:00
Yann Collet 50c5cdb44c fixed issues reported by Maciej Adamczyk 2015-11-04 20:35:33 +01:00
Yann Collet 3e3582719c Fixed issue #62, reported by @luben 2015-11-04 18:19:39 +01:00
Yann Collet e8455f51ea fix clang warning 2015-11-04 17:41:20 +01:00
Yann Collet b241e9deb7 small compression improvement 2015-11-04 13:57:24 +01:00
Yann Collet 59d7063fbc fix and level tuning 2015-11-04 12:05:27 +01:00
Yann Collet 96b9f0ba4d btlazy2 2015-11-04 03:52:54 +01:00
Yann Collet 588d1e5fa0 Fixed asan issue reported by Maciej Adamczyk 2015-11-03 10:48:42 +01:00
Yann Collet 050efba81b level tuning 2015-11-03 09:49:30 +01:00
Yann Collet 3564487614 lazydeep 2015-11-02 16:14:46 +01:00
Yann Collet 7671f393be v0.3.2 2015-11-02 12:17:39 +01:00
Yann Collet 4e049bca8c Fixed Visual Studio issue #60, reported by @mailagentrus 2015-11-02 11:09:54 +01:00
Yann Collet 56e1092cb0 level tuning 2015-11-02 01:02:43 +01:00
Yann Collet 9b11b46f8a Fixed speed regression 2015-11-01 12:40:22 +01:00