summaryrefslogtreecommitdiffstats
path: root/tests/fullbench.c
Commit message (Collapse)AuthorAgeFilesLines
* updated license & header datesYann Collet2020-11-251-1/+1
|
* proper fullbench's LZ4_calloc()Yann Collet2020-11-091-1/+1
|
* changed LZ4_calloc() to a 2-arguments signatureYann Collet2020-11-091-1/+1
| | | | | | to remain similar to stdlib's calloc(). Updated test to use c++ compiler for stricter signature check.
* fix fullbench's LZ4_free()Yann Collet2020-11-091-1/+1
|
* Merge branch 'dev' into customMemYann Collet2020-11-091-3/+44
|\
| * fullbench: added LZ4F_decompress_noHint()Yann Collet2020-11-081-0/+35
| |
| * added test for LZ4_decompress_safe_withPrefix64k()Yann Collet2020-11-081-3/+9
| |
* | first proposal for LZ4_USER_MEMORY_FUNCTIONSYann Collet2020-11-091-0/+8
|/ | | | | | | | | makes it possible to replace at link time malloc, calloc and free by user-provided functions which must be named LZ4_malloc(), LZ4_calloc() and LZ4_free(). answer #937
* fix minor static analyzer warningsYann Collet2020-09-301-12/+12
| | | | | detected by scan-build and cppcheck fix #786
* travisCI: added ASAN fuzzer testsYann Collet2019-06-291-7/+9
| | | | and fixed minor formatting warnings
* fullbench: ensure decompressionFunction and dName are initializedYann Collet2019-05-311-4/+14
| | | | Visual Studio seems to miss that they are necessarily initialized in the switch() { case: }
* replaced while(1)Yann Collet2019-05-311-3/+2
| | | | | by for (;;) just to please Visual Studio C4127 .
* fullbench: added test scenario LZ4F_decompress_followHintYann Collet2019-05-311-13/+51
| | | | | | | | | This emulates a streaming scenario, where the caller follows rigorously the srcSize hints provided as return value of LZ4F_decompress(). This is useful to show the issue in #714, where data is uselessly copied in a tmp buffer first.
* address a few minor Visual warningsYann Collet2019-04-181-2/+2
| | | | and created target cxx17build
* fixed minor Visual conversion warningsYann Collet2019-04-131-1/+1
|
* modified LZ4_initStreamHC() to look like LZ4_initStream()Yann Collet2019-04-091-1/+1
| | | | | it is now a pure initializer, for statically allocated states. It can initialize any memory area, and because of this, requires size.
* fullbench: assert lz4_stream_t initializationYann Collet2019-04-081-2/+4
|
* created LZ4_initStream()Yann Collet2019-04-051-2/+2
| | | | | | | | | | - promoted LZ4_resetStream_fast() to stable - moved LZ4_resetStream() into deprecate, but without triggering a compiler warning - update all sources to no longer rely on LZ4_resetStream() note : LZ4_initStream() proposal is slightly different : it's able to initialize any buffer, provided that it's large enough. To this end, it accepts a void*, and returns an LZ4_stream_t*.
* created LZ4_initStreamHC()Yann Collet2019-04-051-6/+9
| | | | | | | | - promoted LZ4_resetStreamHC_fast() to stable - moved LZ4_resetStreamHC() to deprecated (but do not generate a warning yet) - Updated doc, to highlight difference between init and reset - switched all invocations of LZ4_resetStreamHC() onto LZ4_initStreamHC() - misc: ensure `make all` also builds /tests
* make `_fast*()` decoder generate a deprecation warningYann Collet2019-04-041-0/+1
| | | | updated modification
* added cppcheckYann Collet2018-09-181-2/+2
| | | | | | as Makefile target and Travis CI test. Fixed last cppcheck warnings in tests and examples
* first sketch for a byte-accurate partial decoderYann Collet2018-09-071-11/+21
|
* Test Linking C-Compiled Library and C++-Compiled TestsW. Felix Handte2018-05-221-1/+17
|
* added a test case for LZ4_decompress_fast_usingDictCyan49732018-04-291-12/+22
| | | | | | | with a separated dictionary since a joined dictionary is now detected as prefix64K. Also : fixed a minor warning under msys
* Merge pull request #522 from svpv/refactorDecYann Collet2018-04-281-1/+1
|\ | | | | Refactor dec
| * lz4.c: fixed the LZ4_decompress_safe_continue caseAlexey Tourbin2018-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous change broke decoding with a ring buffer. That's because I didn't realize that the "double dictionary mode" was possible, i.e. that the decoding routine can look both at the first part of the dictionary passed as prefix and the second part passed via dictStart+dictSize. So this change introduces the LZ4_decompress_safe_doubleDict helper, which handles this "double dictionary" situation. (This is a bit of a misnomer, there is only one dictionary, but I can't think of a better name, and perhaps the designation is not all too bad.) The helper is used only once, in LZ4_decompress_safe_continue, it should be inlined with LZ4_FORCE_O2_GCC_PPC64LE attached to LZ4_decompress_safe_continue. (Also, in the helper functions, I change the dictStart parameter type to "const void*", to avoid a cast when calling helpers. In the helpers, the upcast to "BYTE*" is still required, for compatibility with C++.) So this fixes the case of LZ4_decompress_safe_continue, and I'm surprised by the fact that the fuzzer is now happy and does not detect a similar problem with LZ4_decompress_fast_continue. So before fixing LZ4_decompress_fast_continue, the next logical step is to enhance the fuzzer.
* | Add _destSize() to FullbenchW. Felix Handte2018-04-261-6/+12
|/
* util.h and platform.h based on zstdPrzemyslaw Skibinski2016-12-211-0/+1
|
* executables use basic types from util.hPrzemyslaw Skibinski2016-12-211-44/+2
|
* executables use platform.hPrzemyslaw Skibinski2016-12-201-15/+1
|
* fix minor analyzer warningYann Collet2016-11-221-1/+1
|
* fix 32-bits mode.Yann Collet2016-11-171-59/+4
| | | | | | Large File support for Mac OS-X in 32-bits mode Fixed potential undefined behavior Changed makefile for 32-bits mode
* enabled deprecation warnings on remaining obsolete functionsYann Collet2016-11-121-13/+23
|
* Fixed #178 fullbench on small inputYann Collet2016-11-101-1/+3
|
* LZ4_DLL_IMPORTPrzemyslaw Skibinski2016-11-091-4/+4
|
* introduced LZ4_COMPILED_AS_DLLPrzemyslaw Skibinski2016-11-091-4/+12
|
* updated links to LZ4 repositoryPrzemyslaw Skibinski2016-11-031-1/+1
|
* test programs moved to tests/Przemyslaw Skibinski2016-11-031-0/+813