java-topology/defects/sklearn/patch/CLEAN.md

1 KiB
Raw Blame History

sklearn — CWE-407 deeper scan: no NEW defects (sklearn-0001 pre-existing)

Scanned: 2026-03-30

Pre-existing: sklearn-0001 (HistGradientBoosting _check_categories feature_names.index O(C×F))

Deeper scan scope

  • sklearn/utils/graph.pysingle_source_shortest_path_length: uses seen = {} (dict), O(1). CLEAN.
  • sklearn/pipeline.pytransformer_names = set(...), O(1). CLEAN.
  • sklearn/feature_extraction/text.pyindices = set(vocabulary.values()), O(1). CLEAN.
  • sklearn/feature_extraction/_dict_vectorizer.pyvocab is a dict, O(1). CLEAN.
  • sklearn/externals/_arff.pyNominalConversor.values = set(values), O(1). CLEAN.
  • sklearn/compose/_column_transformer.pytransformer_names is a set. CLEAN.
  • sklearn/metrics/_classification.pypresent_labels is numpy array; O(N) but bounded label set, not hot-path quadratic. CLEAN.
  • sklearn/feature_selection/ — no list-dedup patterns in hot paths. CLEAN.

No additional CWE-407 defects found beyond sklearn-0001.