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 (sdist · 1002.1 KB · SHA-256 c8929bf0ce07…)
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+…⟩.

  1. info warn → info by review macro-keyword-override src/c/zstd/lib/common/xxhash.h:3726:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

       || (defined(__wasm_simd128__) && XXH_HAS_INCLUDE(<arm_neon.h>)) /* WASM SIMD128 via SIMDe */
    #    define inline __inline__  /* circumvent a clang bug */
    #    include <arm_neon.h>
    #    undef inline
    likely benign LLM, confidence 0.95 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.

  2. info warn → info by review identifier-confusable-collision src/c/zstd/lib/common/xxhash.h:4611:23

    two identifiers collapse to visual skeleton `bitf|ip|` (0/O/o and 1/l/I are confusable) (token pass, confidence 0.80)

        XXH_ASSERT(9 <= len && len <= 16);
        {   xxh_u64 const bitflip1 = (XXH_readLE64(secret+24) ^ XXH_readLE64(secret+32)) + seed;
            xxh_u64 const bitflip2 = (XXH_readLE64(secret+40) ^ XXH_readLE64(secret+48)) - seed;
            xxh_u64 const input_lo = XXH_readLE64(input)           ^ bitflip1;
    likely benign LLM, confidence 0.93 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.

  3. info warn → info by review identifier-confusable-collision src/c/zstd/lib/dictBuilder/divsufsort.c:264:7

    two identifiers collapse to visual skeleton `do` (0/O/o and 1/l/I are confusable) (token pass, confidence 0.80)

        for(t = *i, j = i + 1; 0 < (r = ss_compare(T, PA + t, PA + *j, depth));) {
          do { *(j - 1) = *j; } while((++j < last) && (*j < 0));
          if(last <= j) { break; }
        }
    likely benign LLM, confidence 0.93 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.

  4. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v02.c:1427:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #elif defined(_MSC_VER)
    #  define inline __inline
    #else
    #  define inline /* disable inline */
    likely benign LLM, confidence 0.95 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.

  5. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v02.c:1429:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #else
    #  define inline /* disable inline */
    #endif
    likely benign LLM, confidence 0.95 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.

  6. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v03.c:1429:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #  pragma warning(disable : 4127)        /* disable: C4127: conditional expression is constant */
    #  define inline __inline
    #else
    #  define inline /* disable inline */
    likely benign LLM, confidence 0.95 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.

  7. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v03.c:1431:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #else
    #  define inline /* disable inline */
    #endif
    likely benign LLM, confidence 0.95 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.

  8. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v04.c:1583:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #elif defined(_MSC_VER)
    #  define inline __inline
    #else
    #  define inline /* disable inline */
    likely benign LLM, confidence 0.95 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.

  9. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v04.c:1585:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #else
    #  define inline /* disable inline */
    #endif
    likely benign LLM, confidence 0.95 Empty inline definition fallback in legacy zstd v0.4.
    Reasoning

    Fallback branch disabling inline on unsupported compilers, a routine portability idiom.

  10. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v05.c:1689:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #elif defined(_MSC_VER)
    #  define inline __inline
    #else
    #  define inline /* disable inline */
    likely benign LLM, confidence 0.95 Portability macro mapping inline to __inline in legacy zstd v0.5.
    Reasoning

    Standard zstd portability macro for inline, found in vendored legacy source.

  11. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v05.c:1691:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #else
    #  define inline /* disable inline */
    #endif
    likely benign LLM, confidence 0.95 Empty inline definition fallback in legacy zstd v0.5.
    Reasoning

    Fallback branch disabling inline, a routine portability idiom.

  12. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v06.c:1914:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #elif defined(_MSC_VER)
    #  define inline __inline
    #else
    #  define inline /* disable inline */
    likely benign LLM, confidence 0.95 Portability macro mapping inline to __inline in legacy zstd v0.6.
    Reasoning

    Standard zstd portability macro for inline in vendored legacy source.

  13. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v06.c:1916:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #else
    #  define inline /* disable inline */
    #endif
    likely benign LLM, confidence 0.95 Empty inline definition fallback in legacy zstd v0.6.
    Reasoning

    Fallback branch disabling inline, a routine portability idiom.

  14. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v07.c:1683:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #elif defined(_MSC_VER)
    #  define inline __inline
    #else
    #  define inline /* disable inline */
    likely benign LLM, confidence 0.95 Portability macro mapping inline to __inline in legacy zstd v0.7.
    Reasoning

    Standard zstd portability macro for inline in vendored legacy source.

  15. info warn → info by review macro-keyword-override src/c/zstd/lib/legacy/zstd_v07.c:1685:1

    `#define inline` rebinds the reserved C keyword `inline` (token pass, confidence 0.85)

    #else
    #  define inline /* disable inline */
    #endif
    likely benign LLM, confidence 0.95 Empty inline definition fallback in legacy zstd v0.7.
    Reasoning

    Fallback branch disabling inline, a routine portability idiom.

  16. info warn → info by review decoder-decompress-payload src/python/backports/zstd/tarfile.py:521:20

    file imports decoder module(s) zlib, bz2, lzma, gzip and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

            """
            self.cmp = self.zlib.decompressobj(-self.zlib.MAX_WBITS)
            self.dbuf = b""
    likely benign LLM, confidence 0.90 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.

  17. info warn → info by review decoder-decompress-payload src/python/backports/zstd/zipfile/__init__.py:812:18

    file imports decoder module(s) binascii, zlib, bz2, lzma and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

    
            result = self._decomp.decompress(data, max_length)
            self.eof = self._decomp.eof
            return result
    likely benign LLM, confidence 0.90 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.

  18. info warn → info by review decoder-import-with-exec tests/test/support/__init__.py:731:5

    file imports decoder module(s) zlib, gzip, bz2, lzma and calls `exec`/`eval`/`compile` — multi-stage payload shape (ast pass, confidence 0.80)

            ns.update(extra_names)
        exec(textwrap.dedent(code), ns)
        return ns
    likely benign LLM, confidence 0.90 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.

  19. info warn → info by review dynamic-execution tests/test/support/__init__.py:731:5

    `exec` called on a non-literal expression (ast pass, confidence 0.70)

            ns.update(extra_names)
        exec(textwrap.dedent(code), ns)
        return ns
    likely benign LLM, confidence 0.85 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.

  20. info warn → info by review dynamic-execution tests/test/support/__init__.py:737:9

    `compile` called on a non-literal expression (ast pass, confidence 0.70)

        with testcase.assertRaisesRegex(SyntaxError, errtext) as cm:
            compile(statement, '<test string>', 'exec')
        err = cm.exception
        testcase.assertIsNotNone(err.lineno)
    likely benign LLM, confidence 0.90 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.

  21. info critical → info by review frame-introspection tests/test/support/__init__.py:1334:17

    `sys.settrace` — call-stack frame introspection — file also calls `sys.exit`/`exec`/`eval` (anti-analysis shape) (ast pass, confidence 0.85)

                try:
                    sys.settrace(None)
                    return func(*args, **kwargs)
                finally:
    likely benign LLM, confidence 0.90 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.

  22. info critical → info by review frame-introspection tests/test/support/__init__.py:1337:17

    `sys.settrace` — call-stack frame introspection — file also calls `sys.exit`/`exec`/`eval` (anti-analysis shape) (ast pass, confidence 0.85)

                finally:
                    sys.settrace(original_trace)
    
        coverage_wrapper = trace_wrapper
    likely benign LLM, confidence 0.90 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.

  23. info critical → info by review frame-introspection tests/test/support/__init__.py:2440:21

    `sys._getframe` — call-stack frame introspection — file also calls `sys.exit`/`exec`/`eval` (anti-analysis shape) (ast pass, confidence 0.85)

                depth = 0
                frame = sys._getframe()
                while frame is not None:
                    depth += 1
    likely benign LLM, confidence 0.90 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.

  24. info critical → info by review dynamic-import tests/test/support/import_helper.py:179:25

    `__import__` called on a non-literal expression (ast pass, confidence 0.70)

                        for modname in fresh:
                            __import__(modname)
                    except ImportError:
                        return None
    likely benign LLM, confidence 0.90 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.

  25. info warn → info by review dynamic-execution tests/test/support/warnings_helper.py:22:9

    `compile` called on a non-literal expression (ast pass, confidence 0.70)

            warnings.simplefilter('always', SyntaxWarning)
            compile(statement, '<testcase>', 'exec')
        testcase.assertEqual(len(warns), 1, warns)
    likely benign LLM, confidence 0.90 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.

  26. info critical → info by review frame-introspection tests/test/support/warnings_helper.py:158:13

    `sys._getframe` — call-stack frame introspection — file also calls `sys.exit`/`exec`/`eval` (anti-analysis shape) (ast pass, confidence 0.85)

        # in order to re-raise the warnings.
        frame = sys._getframe(2)
        registry = frame.f_globals.get('__warningregistry__')
        if registry:
    likely benign LLM, confidence 0.90 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.

  27. info warn → info by review decoder-decompress-payload tests/test/test_tarfile.py:1926:20

    file imports decoder module(s) gzip, zlib, bz2, lzma and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

                    data = fobj.read()
                data = dec.decompress(data)
                self.assertFalse(dec.unused_data, "found trailing data")
            else:
    likely benign LLM, confidence 0.90 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.

  28. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:1944:17

    concatenated bytes literal contains 82 `\xNN` escapes (95% of content) — binary payload shape (ast pass, confidence 0.85)

            # File has an extract_version of 120
            data = (b'PK\x03\x04x\x00\x00\x00\x00\x00!p\xa1@\x00\x00\x00\x00\x00\x00'
                    b'\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00xPK\x01\x02x\x03x\x00\x00\x00\x00'
                    b'\x00!p\xa1@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00'
    likely benign LLM, confidence 0.90 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.

  29. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2084:17

    concatenated bytes literal contains 46 `\xNN` escapes (83% of content) — binary payload shape (ast pass, confidence 0.85)

            #  w.close()
            data = (b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00"
                    b"\x00\x02\x08\x06\x00\x00\x00\x99\x81\xb6'\x00\x00\x00\x15I"
                    b"DATx\x01\x01\n\x00\xf5\xff\x00PK\x05\x06\x00PK\x06\x06\x07"
    likely benign LLM, confidence 0.90 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.

  30. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2230:17

    concatenated bytes literal contains 85 `\xNN` escapes (95% of content) — binary payload shape (ast pass, confidence 0.85)

            # data is declared as shrunk, but actually deflated
            data = (b'PK\x03\x04.\x00\x00\x00\x01\x00\xe4C\xa1@\x00\x00\x00'
                    b'\x00\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00x\x03\x00PK\x01'
                    b'\x02.\x03.\x00\x00\x00\x01\x00\xe4C\xa1@\x00\x00\x00\x00\x02\x00\x00'
    likely benign LLM, confidence 0.93 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.

  31. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2422:13

    concatenated bytes literal contains 93 `\xNN` escapes (96% of content) — binary payload shape (ast pass, confidence 0.85)

            zipdata = (
                b'PK\x03\x04\x14\x00\x00\x00\x00\x00\x93\x9b\xad@\x8b\x9e'
                b'\xd9\xd3\x01\x00\x00\x00\x01\x00\x00\x00\x03\x00\x03\x00ab'
                b'c\x00\x00\x00APK\x01\x02\x14\x03\x14\x00\x00\x00\x00'
    likely benign LLM, confidence 0.93 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.

  32. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2548:13

    concatenated bytes literal contains 133 `\xNN` escapes (94% of content) — binary payload shape (ast pass, confidence 0.85)

            data = (
                b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xa0lH\x05\xe2\x1e'
                b'8\xbb\x10\x00\x00\x00\t\x04\x00\x00\x01\x00\x00\x00b\xed'
                b'\xc0\x81\x08\x00\x00\x00\xc00\xd6\xfbK\\d\x0b`P'
    likely benign LLM, confidence 0.93 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.

  33. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2581:13

    concatenated bytes literal contains 133 `\xNN` escapes (94% of content) — binary payload shape (ast pass, confidence 0.85)

            data = (
                b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xa0lH\x05\xe2\x1e'
                b'8\xbb\x10\x00\x00\x00\t\x04\x00\x00\x01\x00\x00\x00a\xed'
                b'\xc0\x81\x08\x00\x00\x00\xc00\xd6\xfbK\\d\x0b`P'
    likely benign LLM, confidence 0.93 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.

  34. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2615:13

    concatenated bytes literal contains 133 `\xNN` escapes (94% of content) — binary payload shape (ast pass, confidence 0.85)

            data = (
                b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xa0lH\x05\xe2\x1e'
                b'8\xbb\x10\x00\x00\x00\t\x04\x00\x00\x01\x00\x00\x00a\xed'
                b'\xc0\x81\x08\x00\x00\x00\xc00\xd6\xfbK\\d\x0b`P'
    likely benign LLM, confidence 0.93 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.

  35. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2651:13

    concatenated bytes literal contains 157 `\xNN` escapes (93% of content) — binary payload shape (ast pass, confidence 0.85)

            data = (
                b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xa0lH\x05Y\xfc'
                b'8\x044\x00\x00\x00(\x04\x00\x00\x01\x00\x00\x00a\x00'
                b'\x1f\x00\xe0\xffPK\x03\x04\x14\x00\x00\x00\x08\x00\xa0l'
    likely benign LLM, confidence 0.93 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.

  36. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2683:13

    concatenated bytes literal contains 57 `\xNN` escapes (95% of content) — binary payload shape (ast pass, confidence 0.85)

            data = (
                b'PK\x01\x02\x14\x03\x14\x00\x00\x00\x08\x00G_|Z'
                b'\xe2\x1e8\xbb\x0b\x00\x00\x00\t\x04\x00\x00\x01\x00\x00\x00'
                b'\x00\x00\x00\x00\x00\x00\x00\x00\xb4\x81\x00\x00\x00\x00aP'
    likely benign LLM, confidence 0.93 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.

  37. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2706:13

    concatenated bytes literal contains 84 `\xNN` escapes (92% of content) — binary payload shape (ast pass, confidence 0.85)

            data = (
                b'PK\x01\x02\x14\x03\x14\x00\x00\x00\x08\x00G_|Z'
                b'\xe2\x1e8\xbb\x0b\x00\x00\x00\t\x04\x00\x00\x01\x00\x00\x00'
                b'\x00\x00\x00\x00\x00\x00\x00\x00\xb4\x81E\x00\x00\x00aP'
    likely benign LLM, confidence 0.93 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.

  38. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2894:9

    concatenated bytes literal contains 84 `\xNN` escapes (89% of content) — binary payload shape (ast pass, confidence 0.85)

        zip_with_bad_crc = (
            b'PK\x03\x04\x14\x00\x00\x00\x08\x00n}\x0c=FA'
            b'KE\x10\x00\x00\x00n\x00\x00\x00\x05\x00\x00\x00af'
            b'ile\xcbH\xcd\xc9\xc9W(\xcf/\xcaI\xc9\xa0'
    likely benign LLM, confidence 0.93 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.

  39. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2907:9

    concatenated bytes literal contains 101 `\xNN` escapes (87% of content) — binary payload shape (ast pass, confidence 0.85)

        zip_with_bad_crc = (
            b'PK\x03\x04\x14\x03\x00\x00\x0c\x00nu\x0c=FA'
            b'KE8\x00\x00\x00n\x00\x00\x00\x05\x00\x00\x00af'
            b'ileBZh91AY&SY\xd4\xa8\xca'
    likely benign LLM, confidence 0.93 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.

  40. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2923:9

    concatenated bytes literal contains 88 `\xNN` escapes (88% of content) — binary payload shape (ast pass, confidence 0.85)

        zip_with_bad_crc = (
            b'PK\x03\x04\x14\x03\x00\x00\x0e\x00nu\x0c=FA'
            b'KE\x1b\x00\x00\x00n\x00\x00\x00\x05\x00\x00\x00af'
            b'ile\t\x04\x05\x00]\x00\x00\x00\x04\x004\x19I'
    likely benign LLM, confidence 0.93 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.

  41. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2937:9

    concatenated bytes literal contains 84 `\xNN` escapes (88% of content) — binary payload shape (ast pass, confidence 0.85)

        zip_with_bad_crc = (
            b'PK\x03\x04?\x00\x00\x00]\x00\x00\x00!\x00V\xb1\x17J\x14\x00'
            b'\x00\x00\x0b\x00\x00\x00\x05\x00\x00\x00afile(\xb5/\xfd\x00'
            b'XY\x00\x00Hello WorldPK\x01\x02?\x03?\x00\x00\x00]\x00\x00\x00'
    likely benign LLM, confidence 0.97 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.

  42. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2951:9

    concatenated bytes literal contains 98 `\xNN` escapes (88% of content) — binary payload shape (ast pass, confidence 0.85)

        data = (
            b'PK\x03\x04\x14\x00\x01\x00\x00\x00n\x92i.#y\xef?&\x00\x00\x00\x1a\x00'
            b'\x00\x00\x08\x00\x00\x00test.txt\xfa\x10\xa0gly|\xfa-\xc5\xc0=\xf9y'
            b'\x18\xe0\xa8r\xb3Z}Lg\xbc\xae\xf9|\x9b\x19\xe4\x8b\xba\xbb)\x8c\xb0\xdbl'
    likely benign LLM, confidence 0.97 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.

  43. info warn → info by review payload-bytes-literal tests/test/test_zipfile/test_core.py:2959:9

    concatenated bytes literal contains 122 `\xNN` escapes (89% of content) — binary payload shape (ast pass, confidence 0.85)

        data2 = (
            b'PK\x03\x04\x14\x00\t\x00\x08\x00\xcf}38xu\xaa\xb2\x14\x00\x00\x00\x00\x02'
            b'\x00\x00\x04\x00\x15\x00zeroUT\t\x00\x03\xd6\x8b\x92G\xda\x8b\x92GUx\x04'
            b'\x00\xe8\x03\xe8\x03\xc7<M\xb5a\xceX\xa3Y&\x8b{oE\xd7\x9d\x8c\x98\x02\xc0'
    likely benign LLM, confidence 0.97 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.

  44. info warn → info by review dynamic-execution tests/test/test_zipfile/test_core.py:3549:14

    `open(__file__)` — file reads its own source, common pattern for extracting payloads hidden in comments (ast pass, confidence 0.85)

        def test_from_file_fileno(self):
            with open(__file__, 'rb') as f:
                zi = zipfile.ZipInfo.from_file(f.fileno(), 'test')
                self.assertEqual(posixpath.basename(zi.filename), 'test')
    likely benign LLM, confidence 0.96 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.

cargo install disclude --version 4.3.0
curl -fsSL -o backports_zstd-1.8.1.tar.gz https://files.pythonhosted.org/packages/ca/2d/a9b1e917540d1eb27b322bb6c8dc986841052ea315ac864cad1852e2bc8f/backports_zstd-1.8.1.tar.gz
printf '%s  %s\n' c8929bf0ce07c020bc330442fae266c8ef112cae269f85457e8cf857cab57200 backports_zstd-1.8.1.tar.gz | shasum -a 256 -c -
mkdir pkg && tar -xzf backports_zstd-1.8.1.tar.gz -C pkg --strip-components 1
disclude scan --untrusted --severity info pkg