PyPI / backports.zstd / 1.8.1
backports.zstd 1.8.1
- Source
- https://github.com/rogdham/backports.zstd
- Artifact scanned
backports_zstd-1.8.1.tar.gz- Compared with
backports_zstd-1.8.0.tar.gz(0 signals introduced since)- Files
- 168 scanned, 28 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 44 info
- Scan time
- 34.9 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 44 of 44 warn and critical signals; 44 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-11-26 09:13
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
|| /* WASM SIMD128 via SIMDe */likely benign Temporary macro override of inline around a NEON/SIMDe include in vendored xxhash.Reasoning
The #define inline __inline__ is wrapped around an arm_neon.h include (SIMDe path) and immediately undefined afterward. This is a known clang workaround in the vendored xxhash header, not obfuscation.
-
;likely benign Local variables bitflip1 and bitflip2 in xxh3 hashing code flagged only because their names share a skeleton.Reasoning
The two identifiers bitflip1 and bitflip2 differ only by a trailing digit, which the confusable skeleton maps to the same string. The code is ordinary xxh3 secret-mixing arithmetic with no hidden behavior.
-
info
warn→ info by reviewidentifier-confusable-collisionsrc/c/zstd/lib/dictBuilder/divsufsort.c:264:7forlikely benign A do-while loop in the divsufsort suffix sort routine flagged by the confusable-identifier heuristic.Reasoning
The skeleton collision is between the keyword do and an identifier in a standard do-while loop in the divsufsort sorting routine. It is a false positive from the confusable heuristic.
-
likely benign Portability macro defining inline per compiler in legacy zstd v0.2 source.
Reasoning
This is the standard compiler-portability block in legacy zstd that maps inline to __inline on MSVC and disables it elsewhere. It is a common legitimate pattern.
-
likely benign Fallback that defines inline as empty for compilers without support in legacy zstd v0.2.
Reasoning
This is the #else branch of the same standard portability block that disables inline for unsupported compilers.
-
likely benign Portability macro mapping inline to __inline in legacy zstd v0.3.
Reasoning
Standard compiler-portability definition of inline for MSVC in vendored legacy zstd, with no payload or execution behavior.
-
likely benign Empty inline definition fallback in legacy zstd v0.3.
Reasoning
Fallback branch disabling inline on compilers without support, identical to the common zstd portability idiom.
-
likely benign Portability macro mapping inline to __inline in legacy zstd v0.4.
Reasoning
Standard zstd compiler-portability macro for inline, consistent across the vendored legacy versions.
-
likely benign Empty inline definition fallback in legacy zstd v0.4.
Reasoning
Fallback branch disabling inline on unsupported compilers, a routine portability idiom.
-
likely benign Portability macro mapping inline to __inline in legacy zstd v0.5.
Reasoning
Standard zstd portability macro for inline, found in vendored legacy source.
-
likely benign Empty inline definition fallback in legacy zstd v0.5.
Reasoning
Fallback branch disabling inline, a routine portability idiom.
-
likely benign Portability macro mapping inline to __inline in legacy zstd v0.6.
Reasoning
Standard zstd portability macro for inline in vendored legacy source.
-
likely benign Empty inline definition fallback in legacy zstd v0.6.
Reasoning
Fallback branch disabling inline, a routine portability idiom.
-
likely benign Portability macro mapping inline to __inline in legacy zstd v0.7.
Reasoning
Standard zstd portability macro for inline in vendored legacy source.
-
likely benign Empty inline definition fallback in legacy zstd v0.7.
Reasoning
Fallback branch disabling inline, a routine portability idiom.
-
""" self.cmp = self.zlib.decompressobj(-self.zlib.MAX_WBITS) self.dbuf = b""likely benign Stream decompressor setup in the zstd backport of tarfile, decompressing the archive being read.Reasoning
The code creates a decompressobj for the stream-mode tarfile reader to decompress the user-supplied archive being read. This is the normal tarfile decompression path, not an embedded payload executed at runtime.
-
info
warn→ info by reviewdecoder-decompress-payloadsrc/python/backports/zstd/zipfile/__init__.py:812:18= = returnlikely benign Zip member reader that delegates decompression to a zstd/zlib decompressor object.Reasoning
This is a file-like wrapper that forwards read calls to a streaming decompressor for zip members. Decompressing data the caller supplies is the normal job of a zipfile backport, not a hidden payload stage.
-
returnlikely benign Test helper that execs dedented test code in a supplied namespace.Reasoning
This is the CPython test helper that runs generated test code in a fresh namespace via exec, with dedent. Test-harness exec of test-authored source is expected and nothing here decodes or fetches anything.
-
returnlikely benign Dynamic exec of test source text inside a helper function.Reasoning
The exec call is the same test-harness helper running test source in a namespace. The argument is a test string, not untrusted input, so the non-literal exec is expected.
-
=likely benign Compiles a test statement to verify it raises the expected SyntaxError.Reasoning
This is assertSyntaxError-style test code that compiles a statement to check for the expected SyntaxError. Compiling test strings is a standard way to test the parser.
-
returnlikely benign Decorator that disables tracing while calling a wrapped test function.Reasoning
This is a decorator that temporarily clears the trace function with sys.settrace(None) around a call and then restores it. It is a standard no-tracing helper for coverage-sensitive tests, not anti-analysis.
-
=likely benign Restores the previous trace function after a tracing wrapper call.Reasoning
This restores the original trace function in a finally block after a coverage wrapper runs. That is ordinary trace-hook bookkeeping for test coverage.
-
= 0 = += 1likely benign Counts call-stack depth by walking frames from sys._getframe().Reasoning
Walking sys._getframe() to count stack depth is a common test-support technique for recursion or stack-depth checks. It does not evade analysis or hide behavior.
-
return Nonelikely benign Imports test-specified module names during a fresh-import helper.Reasoning
This is import_fresh_module, which imports named modules fresh to test them in isolation. Dynamic __import__ of module names taken from the test's own list is expected.
-
likely benign Compiles a test statement to check for emitted SyntaxWarning.
Reasoning
This compiles a test statement inside a warnings-capture helper to check that SyntaxWarning is emitted. It is standard test code.
-
# in order to re-raise the warnings. = =likely benign Reads the caller frame's warning registry to re-raise warnings correctly.Reasoning
Reading the caller's frame globals to find __warningregistry__ is how the warnings helper re-raises warnings with the correct registry. This is a known stdlib warnings mechanism.
-
= =likely benign Decompresses a tar test fixture and checks for trailing data.Reasoning
This decompresses a test fixture archive and asserts there is no trailing data. It is ordinary test verification of tar compression handling.
-
# File has an extract_version of 120 =likely benign Concatenated bytes literal forming a crafted zip file fixture for tests.Reasoning
This is a hand-built zip byte sequence used as a fixture for extract-version handling tests. Heavy \x escapes are expected in a binary test vector and it is not executed.
-
# w.close() =likely benign Bytes literal holding a PNG/zip polyglot used as a zipfile test fixture.Reasoning
This is a bytes literal beginning with a PNG signature and containing zip end-record bytes, used as a polyglot test fixture for zipfile parsing. It is test data and is not executed.
-
# data is declared as shrunk, but actually deflated =likely benign Concatenated bytes literal encoding a small test zip archive for a zipfile test case.Reasoning
The literal is a hand-built zip archive (PK headers, CRC and length fields) in a test that deliberately creates a zip with a mismatched declared compression method. Byte-escaped test fixtures like this are normal in CPython's zipfile tests.
-
=likely benign Byte-literal zip archive fixture used in a zipfile test.Reasoning
The bytes are a zip local-file and central-directory header sequence (PK signatures, CRC, sizes) assigned to zipdata for a zipfile parsing test. This is fixture data for the stdlib test suite, not a payload.
-
=likely benign Zip archive bytes fixture for a zipfile test.Reasoning
The literal is a serialized zip archive with PK headers and deflate-related fields, inside a zipfile test function. Hand-written binary fixtures of this kind are standard in CPython's test suite.
-
=likely benign Zip archive bytes fixture for a zipfile test variant.Reasoning
Same structure as the neighbouring fixtures: zip headers and compressed data written as escaped bytes in a zipfile test. Context is a stdlib test module, so there is no sign of malicious intent.
-
=likely benign Zip archive bytes fixture in a zipfile test.Reasoning
The literal is another zip archive fixture with PK headers and compressed bytes, as used when testing zipfile edge cases. It is test data that exercises the parser.
-
=likely benign Malformed zip archive bytes fixture for a zipfile error-handling test.Reasoning
The bytes encode a malformed zip with hand-set header fields (CRC, extra fields, offsets), typical for testing how zipfile handles corrupt archives. It sits in a stdlib test module.
-
=likely benign Crafted zip central-directory bytes fixture in a zipfile test.Reasoning
Central-directory and local-header bytes for a crafted zip archive, used to test zipfile parsing of unusual fields. Nothing here executes or reaches out; it is parser test input.
-
=likely benign Variant zip archive bytes fixture for a zipfile test.Reasoning
A variant zip fixture with PK headers and CRC fields in the zipfile test suite. Byte-escaped test data of this form is expected in CPython's tests.
-
=likely benign Zip archive with a deliberately bad CRC, a fixture for zipfile integrity checks.Reasoning
The variable name zip_with_bad_crc and the embedded filename 'afile' show a test archive with an intentionally wrong CRC, used to check zipfile's CRC validation. The bytes are inert test data.
-
=likely benign Bad-CRC zip fixture using bzip2-compressed content, for zipfile tests.Reasoning
The zip_with_bad_crc name and the embedded 'afile' entry, with a bzip2 stream signature (BZh9) inside, are a fixture for testing bad-CRC handling with a different compression method. This is a stdlib test artifact.
-
=likely benign Bad-CRC zip archive fixture for zipfile integrity tests.Reasoning
Another zip_with_bad_crc fixture with PK headers and a stored entry named 'afile', consistent with testing CRC validation in the zipfile module. The data is only read by tests.
-
=likely benign Test fixture: a malformed zip archive embedded as a bytes literal to exercise bad-CRC handling.Reasoning
This is CPython's zipfile test suite. The bytes literal is a hand-built ZIP archive with a deliberately bad CRC, used to test error handling. The escapes are binary zip header bytes, which is expected for test fixtures.
-
=likely benign Test fixture: a literal zip archive containing test.txt used in zipfile tests.Reasoning
The bytes are a valid zip local file header with a test.txt entry, written as a literal so the test controls the exact bytes. This is standard fixture data in the CPython test suite and is not executed or decoded at runtime.
-
=likely benign Test fixture: a crafted zip archive bytes literal for zipfile parser tests.Reasoning
This is a zip archive literal with a zero-filled entry and extra fields, consistent with zipfile test cases for specific header layouts. It is passed to zipfile for parsing in tests only, with no execution path.
-
=likely benign Test method opens its own source file to exercise ZipInfo.from_file with a real fileno.Reasoning
The test opens its own source file in binary mode to get a file descriptor and passes it to ZipInfo.from_file, checking the basename of the result. It does not extract or execute any hidden payload; the read is only to obtain a real file for the test.
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|
&&