PyPI / portalocker / 4.4.1

portalocker 4.4.1

Source
https://github.com/wolph/portalocker
Tag scanned
v4.4.1
Compared with
v4.4.0 (0 signals introduced since)
Files
70 scanned, 10 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 1 info
Scan time
2.6 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.1.0
Scanned (UTC)
2026-10-22 08:54

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review frame-introspection portalocker/utils.py:829:31

    `inspect.currentframe` — call-stack frame introspection (ast pass, confidence 0.70)

        """
        frame: FrameType | None = inspect.currentframe()
        if frame is None:
            return 1
    likely benign LLM, confidence 0.95 Call to inspect.currentframe() in portalocker's utils.py, guarded by a None check, with no sign of malicious use.
    Reasoning

    Calling inspect.currentframe() with a None check is a common, legitimate way to inspect the caller's frame, here likely for logging or stack-depth purposes in a file-locking library. The snippet shows no code execution, network activity, or obfuscation; the frame is used only with a null guard.

Reproduce This Scan

Run disclude locally to verify. 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.1.0
git clone https://github.com/wolph/portalocker portalocker && cd portalocker
git checkout v4.4.1
disclude scan --severity info --diff v4.4.0 .