mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
A property test of the importers (import_fuzz) crashed CI with STATUS_STACK_BUFFER_OVERRUN: a shape with coordinates in the 1e20s from a mutated file made vello_cpu either panic in flatten_simd on a rayon worker (rayon then aborts the process, so the engine's panic guard never sees it) or ask for a 132 GB allocation, which aborts too. A malformed file could end the app and lose the user's work. draw_shape now leaves a shape undrawn when its control points, through the view, aren't finite or reach past 1e10 pixels, or a visible stroke is that wide (MAX_DEVICE). A document's art stays within 4 million points, 2.6e9 pixels at the closest zoom, and vello was checked safe with 90,000 random shapes within 1e9 pixels and 30,000 within 1e12. Co-Authored-By: Claude Opus 5.5 <[email protected]>