summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | fix warnings reported by shellcheck in shell scriptsa13460542021-08-212-2/+2
| |
* | use the same style of hashbang for all filesa13460542021-08-212-2/+2
| |
* | fix broken hashbangsa13460542021-08-212-2/+2
|/
* minor documentation for unicode_lintYann Collet2021-08-091-5/+9
|
* tests(tests/unicode_lint.sh): expand unicode lint to the ./tests/ directoryNate2021-08-081-1/+10
|
* nit(tests/unicode_lint.sh): standardize failure format messageNate2021-08-081-1/+1
|
* tests(unicode_lint.sh): create: lint source files in ./lib/ and ./programs/ ↵Nate2021-08-081-0/+35
| | | | for Unicode
* fixed minor type, reported by @mwgameraYann Collet2021-08-061-2/+2
|
* Fix g++-4.4 warningTakayuki Matsuoka2021-05-301-1/+1
| | | | | | | | | | g++-4.4 creates the following warning for this line. ``` g++-4.4 -Wno-deprecated -O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror -I../lib -I../programs -DXXH_NAMESPACE=LZ4_ lz4frame.o lz4.o lz4hc.o xxhash.o checkFrame.c -o checkFrame checkFrame.c: In function ‘int frameCheck(cRess_t, FILE*, unsigned int, size_t)’: checkFrame.c:156: error: comparison between signed and unsigned integer expressions ```
* fix UB lz4:988 and lz4:1178Yann Collet2021-05-281-1/+4
| | | | | ensure `dictBase` is only used when there is an actual dictionary content.
* fix strange printf formatting warningYann Collet2020-12-011-10/+11
| | | | so now, `%p` _requires_ a `void*` pointer ?
* fix CFLAGS unexport issueYann Collet2020-12-011-1/+1
|
* updated license & header datesYann Collet2020-11-258-9/+9
|
* fixed minor Visual warningYann Collet2020-11-151-1/+1
| | | | doesn't happen on my environment, though it's a different version of Visual Studio
* better visual conformanceYann Collet2020-11-153-20/+12
| | | | | | only include <intrin.h> on vs2005+ (#947) remove some useless #pragma fix a few minor Visual warnings
* LZ4IO_createDict() doesn't need prefsYann Collet2020-11-141-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-092-15/+56
|\
| * Merge pull request #943 from lz4/fullbench_decYann Collet2020-11-091-3/+44
| |\ | | | | | | Added decompression tests in fullbench
| | * fullbench: added LZ4F_decompress_noHint()Yann Collet2020-11-081-0/+35
| | |
| | * added test for LZ4_decompress_safe_withPrefix64k()Yann Collet2020-11-081-3/+9
| | |
| * | attempt at silencing cppcheckYann Collet2020-11-091-12/+12
| |/
* | first proposal for LZ4_USER_MEMORY_FUNCTIONSYann Collet2020-11-092-3/+14
|/ | | | | | | | | 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
* added similar tests for LZ4_saveDict()Yann Collet2020-11-081-1/+17
| | | | fast (non-HC) variant
* fix #926Yann Collet2020-11-081-2/+18
| | | | | fix incorrect behavior of LZ4_saveDictHC() when invoked right after initialization.
* unified alignment testYann Collet2020-11-061-28/+46
| | | | across lz4.c and lz4hc.c
* fix minor explicit castYann Collet2020-10-311-1/+1
|
* reduce new test stack usageYann Collet2020-10-031-10/+12
| | | | use heap instead
* fix cppcheck unused variable warningYann Collet2020-10-021-0/+1
|
* added LZ4_streamHC_t init testYann Collet2020-10-021-2/+21
| | | | which includes an alignment test
* define sentinelTestYann Collet2020-10-021-2/+3
| | | | to help scan-build detect the condition
* make it possible to select SCANBUILD binary on command lineYann Collet2020-10-021-1/+1
|
* add LZ4F_decompress() tests with (NULL,0) input and outputYann Collet2020-10-021-1/+3
| | | | fix one (rare & complex) issue discovered by this test
* fix minor static analyzer warningsYann Collet2020-09-302-12/+13
| | | | | detected by scan-build and cppcheck fix #786
* Merge pull request #923 from lz4/fix784Yann Collet2020-09-282-23/+111
|\ | | | | fix efficiency of LZ4_compress_HC_destSize()
| * improved last literals run on LZ4_compress_destSizeYann Collet2020-09-281-8/+10
| | | | | | | | | | | | applying new more accurate formula from LZ4_compress_HC_destSize() also : fix some minor display issue in tests/frametest
| * ensure last match not too close to endYann Collet2020-09-281-6/+8
| | | | | | | | must respect MFLIMIT distance from oend
| * fix incorrect countingYann Collet2020-09-281-1/+1
| | | | | | | | after truncation of last sequence
| * fix efficiency of LZ4_compress_HC_destSize()Yann Collet2020-09-281-9/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | LZ4_compress_HC_destSize() had a tendency to discard its last match when this match overflowed specified dstBuffer limit. The impact is generally moderate, but occasionally huge, typically when this last match is very large (such as compressing a bunch of zeroes). Issue #784 fixed for both Chain and Opt implementations. Added a unit test suggested by @remittor checking this topic.
* | fix compressing into NULLYann Collet2020-09-261-4/+13
|/ | | | | fails properly bug discovered by oss-fuzz
* fixed ubsan tests with dynamic libraryYann Collet2020-09-171-0/+1
|
* fixed lz4frame with blocks of size 1Yann Collet2020-09-171-2/+4
| | | | properly track history
* Merge branch 'usan_null' of github.com:lz4/lz4 into usan_nullYann Collet2020-09-171-2/+5
|\
| * fix #847Yann Collet2020-09-151-2/+5
| | | | | | | | | | support NULL input without triggering undefined sanitizer
* | fix ubsan testYann Collet2020-09-171-1/+1
|/ | | | | | which now fails with a clear error as intended (not just print a status and move on). should be reproduced on travisCI
* added test triggering NULL arithmetic with usanYann Collet2020-09-151-0/+8
| | | | described in #847
* fixed minor pre-existing printf formattingYann Collet2020-08-271-2/+2
| | | | different signedness
* fixed strict c90 supportYann Collet2020-08-271-2/+0
|