Skip to content

Record edge_detection security sweep result#1269

Open
brendancol wants to merge 1 commit intomainfrom
security-sweep-state-edge_detection-20260425
Open

Record edge_detection security sweep result#1269
brendancol wants to merge 1 commit intomainfrom
security-sweep-state-edge_detection-20260425

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

Summary

  • Records the edge_detection security audit in .claude/sweep-security-state.json.
  • No code changes. The audit found no CRITICAL/HIGH issues.
  • One MEDIUM (Cat 6) was noted: the five public functions do not call _validate_raster, so non-DataArray and non-numeric inputs surface as AttributeError/numba errors instead of a clean TypeError/ValueError. Wrong results are not silent because convolve_2d._promote_float casts integer dtypes to float32. Deferred per the one-fix-per-PR sweep policy.

Test plan

  • State file parses as JSON
  • Entry includes last_inspected, severity_max, categories_found, and notes

No CRITICAL/HIGH findings. The five public functions delegate to
convolve_2d with hard-coded 3x3 kernels, so kernel-memory blowup is
not reachable from this module. One MEDIUM noted for follow-up: the
public entry points do not call _validate_raster, which only affects
error-message UX (wrong results are not silent because _promote_float
normalises integer dtype downstream).
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance PR touches performance-sensitive code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant