Extremely Fast Compression algorithm
This report summarizes scanner evidence for lz4/lz4, a C project with 12,193 GitHub stars. SynthScan examined 45,401 lines of code across 145 source files, recording 100 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 64 finding(s).
Are imports declared and package/API names verified? 31 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 100 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 100 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/bench/test-lz4-speed.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tests/bench/fullbench.c | 41 | #include <sys/stat.h> /* stat64 */ | COMMENT |
| LOW | tests/unit/unittest_lz4frame.c | 21 | You can contact the author at : | COMMENT |
| LOW | tests/unit/unittest.h | 61 | # define UT_PRINTF(f, a) | COMMENT |
| LOW | tests/unit/unittest.h | 101 | # define UT_CONSTRUCTOR(f) \ | COMMENT |
| LOW | tests/unit/unittest_lz4.c | 21 | You can contact the author at : | COMMENT |
| LOW | tests/tools/checkFrame.c | 41 | #include <string.h> /* strcmp */ | COMMENT |
| LOW | tests/compat/check_stdvars.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | tests/compat/abiTest.c | 21 | #include <stdlib.h> /* malloc, free, exit */ | COMMENT |
| LOW | tests/compat/freestanding.c | 1 | // Basic test for LZ4_FREESTANDING | COMMENT |
| LOW | tests/fuzz/fuzzer.c | 41 | # undef _GNU_SOURCE /* in case it's already defined */ | COMMENT |
| LOW | tests/fuzz/fuzzer.c | 61 | #define LZ4_STATIC_LINKING_ONLY | COMMENT |
| LOW | tests/fuzz/frametest.c | 41 | #include <string.h> /* strcmp */ | COMMENT |
| LOW | programs/lz4io.c | 41 | # define _DEFAULT_SOURCE /* madvise(), MADV_* : see LZ4IO_releaseInput() */ | COMMENT |
| LOW | programs/lz4io.c | 61 | #include "lz4io.h" | COMMENT |
| LOW | programs/lz4io.c | 81 | # include <unistd.h> /* write, _exit */ | COMMENT |
| LOW | programs/lz4io.c | 101 | COMMENT | |
| LOW | programs/util.h | 21 | #define UTIL_H_MODULE | COMMENT |
| LOW | programs/util.h | 41 | # include <sys/utime.h> /* utime */ | COMMENT |
| LOW | programs/util.h | 101 | ******************************************/ | COMMENT |
| LOW | programs/util.h | 121 | # endif | COMMENT |
| LOW | programs/util.h | 141 | # define UTIL_STAT_MODE_ISREG(st_mode) ((st_mode) & S_IFREG) | COMMENT |
| LOW | programs/util.h | 161 | ***************************************/ | COMMENT |
| LOW | programs/lz4cli.c | 41 | COMMENT | |
| LOW | programs/lz4cli.c | 61 | * Constants | COMMENT |
| LOW | programs/bench.c | 41 | #include <string.h> /* memset */ | COMMENT |
| LOW | programs/bench.c | 61 | ***************************************/ | COMMENT |
| LOW | programs/platform.h | 61 | /* ********************************************************* | COMMENT |
| LOW | programs/platform.h | 81 | * PLATFORM_POSIX_VERSION >= 1 is equal to found _POSIX_VERSION | COMMENT |
| LOW | programs/platform.h | 101 | # endif | COMMENT |
| LOW | programs/platform.h | 141 | # define SET_SPARSE_FILE_MODE(file) { DWORD dw; DeviceIoControl((HANDLE) _get_osfhandle(_fileno(file)), FSCTL_SET_SPA | COMMENT |
| LOW | examples/blockStreaming_lineByLine.c | 1 | // LZ4 streaming API example : line-by-line logfile compression | COMMENT |
| LOW | examples/bench_functions.c | 61 | COMMENT | |
| LOW | examples/bench_functions.c | 161 | run_screaming("Couldn't run LZ4_compress_fast_extState()... error code received is in exit code.", rv); | COMMENT |
| LOW | examples/blockStreaming_doubleBuffer.c | 1 | // LZ4 streaming API example : double buffer | COMMENT |
| LOW | examples/dictionaryRandomAccess.c | 1 | // LZ4 API example : Dictionary Random Access | COMMENT |
| LOW | lib/xxhash.h | 121 | * Note that no change is required within the calling program as long as it includes `xxhash.h` : | COMMENT |
| LOW | lib/lz4frame.c | 61 | #ifndef LZ4F_HEAPMODE | COMMENT |
| LOW | lib/lz4frame.c | 261 | } | COMMENT |
| LOW | lib/lz4frame.c | 1461 | } | COMMENT |
| LOW | lib/lz4frame.c | 1481 | # include <windows.h> | COMMENT |
| LOW | lib/lz4frame.c | 1501 | # define LZ4F_mutex_destroy(m) pthread_mutex_destroy(m) | COMMENT |
| LOW | lib/lz4.h | 81 | * Export parameters | COMMENT |
| LOW | lib/lz4.h | 121 | # error "LZ4_FREESTANDING requires macro 'LZ4_memcpy'." | COMMENT |
| LOW | lib/lz4.h | 161 | #ifndef LZ4_MEMORY_USAGE | COMMENT |
| LOW | lib/lz4.h | 801 | * Another method is to define LZ4_DISABLE_DEPRECATE_WARNINGS | COMMENT |
| LOW | lib/xxhash.c | 121 | * Compiler Specific Options | COMMENT |
| LOW | lib/xxhash.c | 181 | #endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */ | COMMENT |
| LOW | lib/lz4.c | 101 | COMMENT | |
| LOW | lib/lz4.c | 121 | #ifndef LZ4_FORCE_INLINE | COMMENT |
| LOW | lib/lz4.c | 161 | */ | COMMENT |
| LOW | lib/lz4.c | 221 | # define ALLOC_AND_ZERO(s) LZ4_calloc(1,s) | COMMENT |
| LOW | lib/lz4.c | 241 | **************************************/ | COMMENT |
| LOW | lib/lz4.c | 261 | #define ML_MASK ((1U<<ML_BITS)-1) | COMMENT |
| LOW | lib/lz4.c | 341 | * environments, the compiler can't assume the implementation of memcpy() is | COMMENT |
| LOW | lib/lz4frame.h | 81 | #elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1) | COMMENT |
| LOW | doc/lz4_manual.html | 601 | # if defined (__cplusplus) && (__cplusplus >= 201402) </b>/* C++14 or greater */<b> | COMMENT |
| LOW | ossfuzz/fuzz_helpers.h | 21 | #include <stdio.h> | COMMENT |
| LOW | ossfuzz/fuzz_helpers.h | 41 | */ | COMMENT |
| LOW | .circleci/config.yml | 1 | # This configuration was automatically generated from a CircleCI 1.0 config. | COMMENT |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/unittest_lz4hc.c | 750 | current[i] = ((seed >> 16) % 8 == 0) ? (char)(seed >> 8) : "lorem ipsum dolor sit amet "[i % 27]; | CODE |
| LOW | tests/unit/unittest_lz4hc.c | 750 | current[i] = ((seed >> 16) % 8 == 0) ? (char)(seed >> 8) : "lorem ipsum dolor sit amet "[i % 27]; | CODE |
| LOW | tests/unit/unittest_lz4.c | 869 | sample[n] = ((seed >> 16) % 8 == 0) ? (char)(seed >> 8) : "lorem ipsum dolor sit amet "[n % 27]; | CODE |
| LOW | tests/unit/unittest_lz4.c | 869 | sample[n] = ((seed >> 16) % 8 == 0) ? (char)(seed >> 8) : "lorem ipsum dolor sit amet "[n % 27]; | CODE |
| LOW | tests/tools/loremOut.h | 2 | loremOut.h - lorem ipsum generator to stdout | CODE |
| LOW | tests/tools/loremOut.h | 28 | * Generate @size bytes of compressible data using lorem ipsum generator into stdout. | COMMENT |
| LOW | tests/tools/loremOut.c | 2 | lorem.c - lorem ipsum generator to stdout | CODE |
| LOW | tests/tools/loremOut.c | 27 | * Generates a stream of Lorem ipsum paragraphs to stdout, | COMMENT |
| LOW | tests/compat/cmake/decompress-partial.c | 6 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n" | CODE |
| LOW | tests/compat/cmake/decompress-partial.c | 6 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n" | CODE |
| LOW | tests/compat/cmake/decompress-partial.c | 19 | "porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur,\n" | CODE |
| LOW | tests/compat/cmake/decompress-partial.c | 19 | "porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur,\n" | CODE |
| LOW | programs/lorem.h | 2 | lorem.h - lorem ipsum generator | CODE |
| LOW | programs/lorem.h | 31 | * Generate @size bytes of compressible data using lorem ipsum generator | COMMENT |
| LOW | programs/README.md | 60 | When no file is provided, uses an internal Lorem Ipsum generator instead. | CODE |
| LOW | programs/lorem.c | 2 | lorem.c - lorem ipsum generator | CODE |
| LOW⚡ | programs/lorem.c | 28 | * This is a very simple lorem ipsum generator | COMMENT |
| LOW⚡ | programs/lorem.c | 35 | * The resulting compression / ratio curve of the lorem ipsum generator | COMMENT |
| LOW⚡ | programs/lorem.c | 40 | * The compression ratio achievable on the generated lorem ipsum | COMMENT |
| LOW | programs/lorem.c | 320 | /* It's "common" for lorem ipsum generators to start with the same first | COMMENT |
| LOW | programs/bench.c | 666 | "Lorem ipsum", | CODE |
| LOW | examples/bench_functions.c | 238 | * Test suite A) Uses generic Lorem Ipsum text which should be generally compressible insomuch as basic human text is | COMMENT |
| LOW | examples/bench_functions.c | 253 | const char src[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed luctus purus et risus vulputate, e | CODE |
| LOW | examples/bench_functions.c | 253 | const char src[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed luctus purus et risus vulputate, e | CODE |
| LOW | examples/simple_buffer.c | 41 | const char* const src = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor site amat."; | CODE |
| LOW | examples/simple_buffer.c | 41 | const char* const src = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor site amat."; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/bench/test-lz4-speed.py | 71 | except Exception: | CODE |
| LOW | tests/bench/test-lz4-speed.py | 343 | except Exception as e: | CODE |
| MEDIUM | tests/bench/test-lz4-speed.py | 68 | def does_command_exist(command): | CODE |
| MEDIUM | tests/compat/test-lz4-abi.py | 48 | print('Error Code:', s.poll()) | CODE |
| MEDIUM | tests/compat/test-lz4-versions.py | 53 | print('Error Code:', s.poll()) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/bench/test-lz4-speed.py | 209 | 'make clean && CPPFLAGS="-DLZ4_GIT_COMMIT=%s" make -C programs lz4 lz4c32 ' % version) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/bench/test-lz4-speed.py | 18 | CODE | |
| LOW | tests/compat/test-lz4-abi.py | 11 | CODE | |
| LOW | tests/compat/test-lz4-abi.py | 13 | CODE | |
| LOW | tests/compat/test-lz4-abi.py | 15 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/cli/test-lz4-list.py | 65 | CODE | |
| LOW | tests/cli/test-lz4-list.py | 117 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/bench/test-lz4-speed.py | 89 | def send_email_with_attachments(branch, commit, last_commit, args, text, results_files, | CODE |