Repository navigation
Python: high_risk_execution counts subprocess.check_output/check_call (Closes #8865) - #8902
Merged
Merged
Conversation
…/getoutput/getstatusoutput (Closes #8865) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
2 similar comments
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
|
CI shepherd: the head of this PR (f48b38a) is not the one a maintainer labelled |
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8865
What changed
Python
high_risk_execution(thestate_dangerfamily) listed onlysubprocess.(call|Popen|run). It now also countscheck_call,check_output,getoutputandgetstatusoutput. Test:tests/extraction/languages/test_python_strict.py(each spawner, negatives for bare or look-alike names, and theglobalrepro).Class / Sibling gaps
Class: Python
subprocessentry points that spawn a process but were missing fromhigh_risk_execution. All four members are fixed here, each with a test.embedded_pythonhas no subprocess clause, so there is no twin to update.Sibling gaps:
arch_globalswithglobal: already fixed byglobalshas no stated contract: 2 open cells are one-owner/ambiguity misfires, and the crucible shows the rule counting local declarations, function prototypes and hyphenated identifiers #2858 (^[ \t]*global namein theglobalsrule); the issue's repro matches on main. Pinned with a regression test. No burned-estate program needs it.nonlocalis not counted byglobals. This is a definition question owned by Keyword families: five definition questions for the owner (json, generators, closures, cleanup, telemetry) #8862 (still open), so it is not changed here and has a test noting it.\bexec/\bevalmatching method names. Not changed. No burned-estate program needs it.Evidence
pr_gates --fast: 9/9 pass.--ratchetswas not run (no golden or ledger movement).🤖 Generated with Claude Code