]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
6 years agoFix decodecorpus 1301/head
Nick Terrell [Tue, 28 Aug 2018 20:56:47 +0000 (13:56 -0700)] 
Fix decodecorpus

6 years agoSmall test fixes
Nick Terrell [Tue, 28 Aug 2018 20:42:01 +0000 (13:42 -0700)] 
Small test fixes

6 years ago[zstd] Fix seqStore growth
Nick Terrell [Tue, 28 Aug 2018 20:24:44 +0000 (13:24 -0700)] 
[zstd] Fix seqStore growth

We could undersize the literals buffer by up to 11 bytes,
due to a combination of 2 bugs:
* The literals buffer didn't have `WILDCOPY_OVERLENGTH` extra
  space, like it is supposed to.
* We didn't check the literals buffer size in `ZSTD_sufficientBuff()`.

6 years ago[fuzzer] Test growing the seqStore_t
Nick Terrell [Tue, 28 Aug 2018 20:20:37 +0000 (13:20 -0700)] 
[fuzzer] Test growing the seqStore_t

6 years agoMerge pull request #1299 from modbw/dev
Yann Collet [Tue, 28 Aug 2018 15:41:44 +0000 (08:41 -0700)] 
Merge pull request #1299 from modbw/dev

Fixed memory leak detected by cppcheck

6 years agoFixed memory leak detected by cppcheck 1299/head
modbw [Tue, 28 Aug 2018 05:25:05 +0000 (07:25 +0200)] 
Fixed memory leak detected by cppcheck

cppcheck (which is run regularly in our CI environment)  detected a possible memory leak.

6 years agoMerge pull request #1297 from felixhandte/check-offset-table
Yann Collet [Sat, 25 Aug 2018 00:36:44 +0000 (17:36 -0700)] 
Merge pull request #1297 from felixhandte/check-offset-table

Fix Missing Offset Table Check

6 years agoMark Repeated Offset Table as Needing Check 1297/head
W. Felix Handte [Fri, 24 Aug 2018 21:33:34 +0000 (14:33 -0700)] 
Mark Repeated Offset Table as Needing Check

6 years agoAdd Failing Test
W. Felix Handte [Fri, 24 Aug 2018 21:30:21 +0000 (14:30 -0700)] 
Add Failing Test

6 years agoFix decodecorpus
Nick Terrell [Thu, 23 Aug 2018 22:28:12 +0000 (15:28 -0700)] 
Fix decodecorpus

6 years agoFix compiler warning
Nick Terrell [Tue, 21 Aug 2018 21:38:24 +0000 (14:38 -0700)] 
Fix compiler warning

6 years ago[zstd] Add note about empty ZSTD_CDict
Nick Terrell [Tue, 21 Aug 2018 21:20:21 +0000 (14:20 -0700)] 
[zstd] Add note about empty ZSTD_CDict

6 years ago[zstd] Reuse the ZSTD_CCtx more often with small data.
Nick Terrell [Tue, 21 Aug 2018 21:20:02 +0000 (14:20 -0700)] 
[zstd] Reuse the ZSTD_CCtx more often with small data.

6 years agoMerge fastCover into DictBuilder (#1274)
Jennifer Liu [Thu, 23 Aug 2018 19:06:20 +0000 (12:06 -0700)] 
Merge fastCover into DictBuilder (#1274)

* Minor fix

* Run non-optimize FASTCOVER 5 times in benchmark

* Merge fastCover into dictBuilder

* Fix mixed declaration issue

* Add fastcover to symbol.c

* Add fastCover.c and cover.h to build

* Change fastCover.c to fastcover.c

* Update benchmark to run FASTCOVER in dictBuilder

* Undo spliting fastcover_param into cover_param and f

* Remove convert param functions

* Assign f to parameter

* Add zdict.h to Makefile in lib

* Add cover.h to BUCK

* Cast 1 to U64 before shifting

* Remove trimming of zero freq head and tail in selectSegment and rebenchmark

* Remove f as a separate parameter of tryParam

* Read 8 bytes when d is 6

* Add trimming off zero frequency head and tail

* Use best functions from COVER and remove trimming part(which leads to worse compression ratio after previous bugs were fixed)

* Add finalize= argument to FASTCOVER to specify percentage of training samples passed to ZDICT_finalizeDictionary

* Change nbDmer to always read 8 bytes even when d=6

* Add skip=# argument to allow skipping dmers in computeFrequency in FASTCOVER

* Update comments and benchmarking result

* Change default method of ZDICT_trainFromBuffer to ZDICT_optimizeTrainFromBuffer_fastCover

* Add dictType enum and fix bug about passing zParam when converting to coverParam

* Combine finalize and skip into a single parameter

* Update acceleration parameters and benchmark on 3 sample sets

* Change default splitPoint of FASTCOVER to 0.75 and benchmark first 3 sample sets

* Initialize variables outside of for loop in benchmark.c

* Update benchmark result for hg-manifest

* Remove cover.h from install-includes

* Add explanation of f

* Set default compression level for trainFromBuffer to 3

* Add assertion of fastCoverParams in DiB_trainFromFiles

* Add checkTotalCompressedSize function + some minor fixes

* Add test for multithreading fastCovr

* Initialize segmentFreqs in every FASTCOVER_selectSegment and move mutex_unnlock to end of COVER_best_finish

* Free segmentFreqs

* Initialize segmentFreqs before calling FASTCOVER_buildDictionary instead of in FASTCOVER_selectSegment

* Add FASTCOVER_MEMMULT

* Minor fix

* Update benchmarking result

6 years agoMerge pull request #1287 from tgurr/cmake-docdir
Yann Collet [Tue, 21 Aug 2018 21:48:50 +0000 (14:48 -0700)] 
Merge pull request #1287 from tgurr/cmake-docdir

Use GNUInstallDirs DOCDIR for installing the manual

6 years agoMerge pull request #1290 from edenzik/ezik/1119-safe-strcpy-in-fileio
Yann Collet [Tue, 21 Aug 2018 20:18:44 +0000 (13:18 -0700)] 
Merge pull request #1290 from edenzik/ezik/1119-safe-strcpy-in-fileio

Fixed unsafe string copy and concat in `fileio.c`.

6 years agoFixed unsafe string copy and concat in `fileio.c`. 1290/head
Eden Zik [Tue, 21 Aug 2018 02:15:24 +0000 (22:15 -0400)] 
Fixed unsafe string copy and concat in `fileio.c`.

Per warnings from flawfinder: "Does not check for buffer overflows when
copying to destination [MS-banned] (CWE-120). Consider using snprintf,
strcpy_s, or strlcpy (warning: strncpy easily misused).".

Replaced called to strcpy and strcat in `fileio.c` to calls with a
specified size (`strncpy` and `strncat`).

Tested the changes on OSX, Linux, Windows.
On OSX + Linux, changes were tested with ASAN. The following flags were
used: 'check_initialization_order=1:strict_init_order=1:detect_odr_violation=1:detect_stack_use_after_return=1'

To reproduce warning:
./flawfinder.py ./programs/fileio.c

6 years agoMerge pull request #1285 from facebook/scanbuild
Yann Collet [Fri, 17 Aug 2018 23:38:41 +0000 (16:38 -0700)] 
Merge pull request #1285 from facebook/scanbuild

static analyzer tests

6 years agoUse GNUInstallDirs DOCDIR for installing the manual 1287/head
Timo Gurr [Fri, 17 Aug 2018 11:31:55 +0000 (13:31 +0200)] 
Use GNUInstallDirs DOCDIR for installing the manual

6 years agoMerge pull request #1284 from GeorgeLu97/negativeLvlDisplay
Yann Collet [Fri, 17 Aug 2018 01:20:37 +0000 (18:20 -0700)] 
Merge pull request #1284 from GeorgeLu97/negativeLvlDisplay

Fix negative lvl display value

6 years agoClarify README 1284/head
George Lu [Fri, 17 Aug 2018 00:22:29 +0000 (17:22 -0700)] 
Clarify README

6 years agoFix negative lvl display value
George Lu [Thu, 16 Aug 2018 23:13:02 +0000 (16:13 -0700)] 
Fix negative lvl display value

Also fix synthetic benchmark parameter setting

6 years agoMakefile: added variable SCANBUILD 1282/head 1285/head
Yann Collet [Thu, 16 Aug 2018 22:41:56 +0000 (15:41 -0700)] 
Makefile: added variable SCANBUILD

so that a different version of scan-build can be selected

6 years agofixed more issues detected by recent version of scan-build
Yann Collet [Thu, 16 Aug 2018 21:40:47 +0000 (14:40 -0700)] 
fixed more issues detected by recent version of scan-build

test run on Linux

6 years agoMerge pull request #1281 from GeorgeLu97/cleanUp
Yann Collet [Thu, 16 Aug 2018 00:56:45 +0000 (17:56 -0700)] 
Merge pull request #1281 from GeorgeLu97/cleanUp

Clean up paramgrill code

6 years agoadded static analyzer tests to travis CI
Yann Collet [Thu, 16 Aug 2018 00:44:27 +0000 (17:44 -0700)] 
added static analyzer tests to travis CI

6 years agofix scope of scan-build tests
Yann Collet [Thu, 16 Aug 2018 00:41:44 +0000 (17:41 -0700)] 
fix scope of scan-build tests

exclude zlib code

6 years agoensure dependency for zlib wrapper
Yann Collet [Wed, 15 Aug 2018 23:43:13 +0000 (16:43 -0700)] 
ensure dependency for zlib wrapper

6 years agoprune comments 1281/head
George Lu [Wed, 15 Aug 2018 22:01:03 +0000 (15:01 -0700)] 
prune comments

6 years agoMove Stuff around
George Lu [Wed, 15 Aug 2018 21:57:10 +0000 (14:57 -0700)] 
Move Stuff around

Group similar functions together, remove outdated comments

6 years agoconsts
George Lu [Wed, 15 Aug 2018 21:27:07 +0000 (14:27 -0700)] 
consts

6 years agoRemove unused stuff
George Lu [Wed, 15 Aug 2018 21:00:57 +0000 (14:00 -0700)] 
Remove unused stuff

6 years agoMerge pull request #1280 from GeorgeLu97/betterDisplay
Yann Collet [Wed, 15 Aug 2018 22:20:56 +0000 (15:20 -0700)] 
Merge pull request #1280 from GeorgeLu97/betterDisplay

Better Paramgrill Display

6 years agofixed minor warnings issued by scan-build
Yann Collet [Wed, 15 Aug 2018 21:35:38 +0000 (14:35 -0700)] 
fixed minor warnings issued by scan-build

6 years agoclarify display README 1280/head
George Lu [Wed, 15 Aug 2018 21:29:49 +0000 (14:29 -0700)] 
clarify display README

6 years agoFix wraparound
George Lu [Wed, 15 Aug 2018 18:46:19 +0000 (11:46 -0700)] 
Fix wraparound

6 years agosilencing params
George Lu [Wed, 15 Aug 2018 01:04:58 +0000 (18:04 -0700)] 
silencing params

6 years agoClean up repetitive display
George Lu [Tue, 14 Aug 2018 23:51:39 +0000 (16:51 -0700)] 
Clean up repetitive display

Add documentation

6 years ago-q -v options
George Lu [Tue, 14 Aug 2018 22:54:07 +0000 (15:54 -0700)] 
-q -v options

6 years agobegin display changes
George Lu [Tue, 14 Aug 2018 21:24:05 +0000 (14:24 -0700)] 
begin display changes

6 years agoMerge branch 'dev' into scanbuild
Yann Collet [Tue, 14 Aug 2018 23:56:07 +0000 (16:56 -0700)] 
Merge branch 'dev' into scanbuild

6 years agoMerge pull request #1277 from GeorgeLu97/mtoptions
Yann Collet [Wed, 15 Aug 2018 20:45:17 +0000 (13:45 -0700)] 
Merge pull request #1277 from GeorgeLu97/mtoptions

memoTableOptions

6 years agoAdd memoTable options 1277/head
George Lu [Mon, 13 Aug 2018 19:51:22 +0000 (12:51 -0700)] 
Add memoTable options

-hashing memotable
-no memotable

6 years agofixed several minor issues detected by scan-build
Yann Collet [Tue, 14 Aug 2018 19:56:21 +0000 (12:56 -0700)] 
fixed several minor issues detected by scan-build

only notable one :
writeNCount() resists better vs invalid distributions
(though it should never happen within zstd anyway)

6 years agoMerge pull request #1279 from GeorgeLu97/benchSA
Yann Collet [Tue, 14 Aug 2018 23:44:28 +0000 (16:44 -0700)] 
Merge pull request #1279 from GeorgeLu97/benchSA

Fix scan-build warnings in bench.c

6 years agoMAke it easier to add params
George Lu [Fri, 10 Aug 2018 23:14:12 +0000 (16:14 -0700)] 
MAke it easier to add params

Make memoTable size limited

6 years agoTemp fix perf regression
George Lu [Thu, 9 Aug 2018 23:36:34 +0000 (16:36 -0700)] 
Temp fix perf regression

6 years agoMerge pull request #1276 from GeorgeLu97/fadt
Yann Collet [Tue, 14 Aug 2018 23:06:18 +0000 (16:06 -0700)] 
Merge pull request #1276 from GeorgeLu97/fadt

forceAttachDict

6 years agoFix scan-build warnings in bench.c 1279/head
George Lu [Tue, 14 Aug 2018 21:44:47 +0000 (14:44 -0700)] 
Fix scan-build warnings in bench.c

6 years agoforceAttachDict 1276/head
George Lu [Thu, 9 Aug 2018 17:42:35 +0000 (10:42 -0700)] 
forceAttachDict

6 years agoAdd Time Checks
George Lu [Mon, 6 Aug 2018 23:52:17 +0000 (16:52 -0700)] 
Add Time Checks
Fix double -> U64 display

6 years agoReduce Duplication
George Lu [Mon, 6 Aug 2018 22:08:35 +0000 (15:08 -0700)] 
Reduce Duplication

Change Defaults
Asserts actually disabled in paramgrill + fullbench

6 years agoDoc Updates
George Lu [Wed, 1 Aug 2018 01:47:27 +0000 (18:47 -0700)] 
Doc Updates

Add option to pass in existing parameters in use

6 years agoMerge pull request #1275 from GeorgeLu97/multilvl
Yann Collet [Tue, 14 Aug 2018 21:17:28 +0000 (14:17 -0700)] 
Merge pull request #1275 from GeorgeLu97/multilvl

MultiLvl

6 years agoscan-build 1275/head
George Lu [Tue, 14 Aug 2018 18:57:15 +0000 (11:57 -0700)] 
scan-build

6 years agorebase clevel
George Lu [Mon, 13 Aug 2018 23:38:51 +0000 (16:38 -0700)] 
rebase clevel

6 years agoMerge pull request #1278 from edenzik/fb/ezik/better-cmake-support-1081
Yann Collet [Tue, 14 Aug 2018 01:38:05 +0000 (18:38 -0700)] 
Merge pull request #1278 from edenzik/fb/ezik/better-cmake-support-1081

Cmake now builds with CMAKE_BUILD_TYPE=Release by default

6 years agoCmake now builds with CMAKE_BUILD_TYPE=Release by default, both while 1278/head
Eden Zik [Tue, 14 Aug 2018 00:28:52 +0000 (20:28 -0400)] 
Cmake now builds with CMAKE_BUILD_TYPE=Release by default, both while
being invoked from the main Makefile (via cmakebuild) or directly from
the build/cmake directory. Suggested by @pdknsk (#1081).

6 years agostrategy switching
George Lu [Tue, 31 Jul 2018 18:13:44 +0000 (11:13 -0700)] 
strategy switching

6 years agoUpdate fulltable to use same interface
George Lu [Tue, 31 Jul 2018 00:42:46 +0000 (17:42 -0700)] 
Update fulltable to use same interface

Add seperateFiles flag

6 years agoRenames, Documentation Updates
George Lu [Fri, 27 Jul 2018 23:49:33 +0000 (16:49 -0700)] 
Renames, Documentation Updates

6 years agoStyle Changes
George Lu [Fri, 27 Jul 2018 21:19:55 +0000 (14:19 -0700)] 
Style Changes

Add single run dictionaries
Change MB to be consistent 1 << 20 rather than 1,000,000

6 years agoCleanup
George Lu [Fri, 27 Jul 2018 18:47:14 +0000 (11:47 -0700)] 
Cleanup

6 years agoGeneralize, macro magic numbers
George Lu [Fri, 27 Jul 2018 15:20:31 +0000 (08:20 -0700)] 
Generalize, macro magic numbers

6 years agoPerf improvements
George Lu [Thu, 26 Jul 2018 23:45:00 +0000 (16:45 -0700)] 
Perf improvements

try decay
strategy selection skipping

6 years agoBetter Display
George Lu [Wed, 25 Jul 2018 18:55:09 +0000 (11:55 -0700)] 
Better Display

6 years agoBugfixes, style changes
George Lu [Wed, 25 Jul 2018 18:37:20 +0000 (11:37 -0700)] 
Bugfixes, style changes

Complete euclidean distance climb

6 years agoNew climb
George Lu [Wed, 25 Jul 2018 00:55:17 +0000 (17:55 -0700)] 
New climb

feas part 2 uses euclidean metric

6 years agoTable
George Lu [Wed, 25 Jul 2018 00:26:21 +0000 (17:26 -0700)] 
Table

Compiling
+Euclidean Metric

6 years agoRevert "Reorder declaration"
George Lu [Mon, 13 Aug 2018 23:15:34 +0000 (16:15 -0700)] 
Revert "Reorder declaration"

This reverts commit 3ac2c22485ab5508f47e3eab642b787af0e68b5f.

6 years agoRevert "Default lvl 1"
George Lu [Mon, 13 Aug 2018 23:13:46 +0000 (16:13 -0700)] 
Revert "Default lvl 1"

This reverts commit 0cc75d6ee02efe9da7901848ce588a7f9f61b4f9.

6 years agoMerge pull request #1236 from GeorgeLu97/paramgrillconstraints
Yann Collet [Mon, 13 Aug 2018 22:44:50 +0000 (15:44 -0700)] 
Merge pull request #1236 from GeorgeLu97/paramgrillconstraints

ParamgrillConstraints

6 years agoDefault lvl 1 1236/head
George Lu [Mon, 13 Aug 2018 20:56:18 +0000 (13:56 -0700)] 
Default lvl 1

MB to 2^20

7 years agoReorder declaration
George Lu [Thu, 9 Aug 2018 23:38:32 +0000 (16:38 -0700)] 
Reorder declaration

7 years agofixed assert() condition
Yann Collet [Thu, 9 Aug 2018 22:57:19 +0000 (15:57 -0700)] 
fixed assert() condition

7 years agominor code comments improvements
Yann Collet [Thu, 9 Aug 2018 22:16:31 +0000 (15:16 -0700)] 
minor code comments improvements

7 years agoMerge pull request #1273 from facebook/zstdgrep
Yann Collet [Thu, 9 Aug 2018 19:35:49 +0000 (12:35 -0700)] 
Merge pull request #1273 from facebook/zstdgrep

added zstdgrep documentation

7 years agoadded zstdgrep documentation 1273/head
Yann Collet [Thu, 9 Aug 2018 19:28:25 +0000 (12:28 -0700)] 
added zstdgrep documentation

presenting `zstdgrep` limit regarding dictionary compression
with workaround recommended by @tobwen (#1268)

7 years agoRemove ctx from benchMem
George Lu [Thu, 9 Aug 2018 19:07:57 +0000 (12:07 -0700)] 
Remove ctx from benchMem

7 years agoAdd consts
George Lu [Thu, 9 Aug 2018 18:38:09 +0000 (11:38 -0700)] 
Add consts

+ fix gcc-8 warnings

7 years agoargument parsing cleanup
George Lu [Tue, 7 Aug 2018 18:56:14 +0000 (11:56 -0700)] 
argument parsing cleanup

+ clarifying comment

7 years agoReadability improvements, renaming
George Lu [Tue, 7 Aug 2018 01:37:55 +0000 (18:37 -0700)] 
Readability improvements, renaming

7 years agoconst srcPtrs
George Lu [Tue, 7 Aug 2018 01:00:36 +0000 (18:00 -0700)] 
const srcPtrs

7 years agoChange speed representation from floating point to integral
George Lu [Tue, 7 Aug 2018 00:13:36 +0000 (17:13 -0700)] 
Change speed representation from floating point to integral

7 years agoUpdate Documentation
George Lu [Mon, 30 Jul 2018 18:30:38 +0000 (11:30 -0700)] 
Update Documentation

Change comment // to  /* */
Add more description of what functions do
Remove outdated comments

7 years agoRenaming / Style fixes
George Lu [Fri, 27 Jul 2018 15:49:25 +0000 (08:49 -0700)] 
Renaming / Style fixes

7 years agoSeparate capacity vs size
George Lu [Fri, 20 Jul 2018 21:35:09 +0000 (14:35 -0700)] 
Separate capacity vs size

Also:
Make suggested fixes
-varInds_t
-reorder some arguments
-remove code duplication
-update README / -h
-Fix memory leaks

7 years agoFix windows implicit casting bugs
George Lu [Tue, 17 Jul 2018 01:22:04 +0000 (18:22 -0700)] 
Fix windows implicit casting bugs

7 years agoAdd Levels
George Lu [Tue, 17 Jul 2018 01:04:57 +0000 (18:04 -0700)] 
Add Levels

7 years agoBenchMem with block compressed sizes passed back up
George Lu [Mon, 16 Jul 2018 23:16:31 +0000 (16:16 -0700)] 
BenchMem with block compressed sizes passed back up

7 years agoTotal Changes:
George Lu [Fri, 13 Jul 2018 00:30:39 +0000 (17:30 -0700)] 
Total Changes:

Add different constraint types (decompression speed, compression memory, parameter constraints)
Separate search space by strategy + strategy selection
Memoize results
Real random restarts
Support multiple files
Support Dictionary inputs
Debug Macro for extra printing

7 years agoDictionary + Multiple file Loading
George Lu [Tue, 10 Jul 2018 01:37:54 +0000 (18:37 -0700)] 
Dictionary + Multiple file Loading

7 years agoNot crashing
George Lu [Mon, 9 Jul 2018 20:44:01 +0000 (13:44 -0700)] 
Not crashing

7 years agoWorking V1
George Lu [Mon, 18 Jun 2018 18:59:45 +0000 (11:59 -0700)] 
Working V1

7 years agoParses additional parameters
George Lu [Wed, 6 Jun 2018 23:19:09 +0000 (16:19 -0700)] 
Parses additional parameters

Additional constraint checking

Minor fixes

more param parsing

Add Memory

Change paramVariation

work on feasibility

reformat bench

Changed Paramgrill to use bench.c benchmarking

customlevel macro

Printing Flag

Minor changes

Explicit casting

Makefile fix

casting, type fix

Printing Flag

Minor Changes

comments, helper fn's

7 years agoMerge pull request #1272 from facebook/travisTest
Yann Collet [Wed, 8 Aug 2018 21:56:00 +0000 (14:56 -0700)] 
Merge pull request #1272 from facebook/travisTest

gcc-8 travis test

7 years agoMerge pull request #1271 from felixhandte/circleci-2.0-config
Yann Collet [Wed, 8 Aug 2018 21:48:51 +0000 (14:48 -0700)] 
Merge pull request #1271 from felixhandte/circleci-2.0-config

Migrate Config to CircleCI 2.0

7 years agoPreserve Commented-Out Longer Tests 1271/head
W. Felix Handte [Wed, 8 Aug 2018 21:09:12 +0000 (14:09 -0700)] 
Preserve Commented-Out Longer Tests

7 years agosome errors may only happen when optimizations are enabled 1272/head
Yann Collet [Wed, 8 Aug 2018 19:37:08 +0000 (12:37 -0700)] 
some errors may only happen when optimizations are enabled

7 years agoRemove Old CircleCI Config
W. Felix Handte [Wed, 8 Aug 2018 19:31:37 +0000 (12:31 -0700)] 
Remove Old CircleCI Config