You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 41ce7cb
Browse filesBrowse the repository at this point in the historyBrowse files
* Split shorten_code() formatting from dedup tracking (GHSA-cffv-grgg-g429)
AnalysisContext.shorten_code() mutated a shared reported_shortened_code
set as a side effect of formatting, even though most callers only wanted
the formatted string. It could then shadow findings from future analysis
runs.
For instance, UnsafeImportsML processed every import and would
leave MLAllowlist with an already-reported state for all of them.
Any import outside ML_ALLOWLIST would not be flagged by the second run.
Split shorten_code() into a pure formatter and an explicit mark_reported()
helper.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Make MLAllowlist opt-in
Analysis.__init_subclass__ put every subclass into Analysis.ALL, and
fickling/__init__.py transitively imported fickling.ml via hook.py, wich
registered MLAllowlist.
The shorten_code() shadowing bug (GHSA-cffv-grgg-g429) made it dead code
until the previous commit, and now it conflicts with other default
analysis passes.
This commit makes MLAllowlist opt-in; use `check_safety(analyze=...)`
if you need it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments