Skip to content

fix(draw): harden geometry at extreme coordinates - #353

Merged
devmobasa merged 5 commits into
mainfrom
fix/extreme-coordinate-hardening
Aug 24, 2026
Merged

fix(draw): harden geometry at extreme coordinates#353
devmobasa merged 5 commits into
mainfrom
fix/extreme-coordinate-hardening

Conversation

@devmobasa

Copy link
Copy Markdown
Owner

Summary

  • use checked or widened arithmetic for rectangle and ellipse geometry
  • reject unrepresentable rectangle and blur drag spans
  • centralize clipped shape-bound construction across drawing types
  • reject invalid floating-point bounds and negative radii
  • harden polygon templates, arrow labels, and step-marker geometry at coordinate limits

Validation

  • focused utility geometry, drag normalization, and shape-bound tests
  • the same focused tests with --no-default-features
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • git diff --check

@devmobasa
devmobasa merged commit f6aa295 into main Aug 24, 2026
2 checks passed
@devmobasa
devmobasa deleted the fix/extreme-coordinate-hardening branch August 24, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant