fix(anatomy): V1-2.2 path numbers bounded by the frame magnitude
Fresh security review and verifier (MEDIUM): browsers read path data in f32 and draw nothing for an arc radius or rotation past f32::MAX (WebKit from 1e30) while the endpoints kept the verdict green. Every path and viewBox number is now read within 2^20, else the path is unreadable. Docs: section 12.12 transform table, mutation record, open zone finding.
This commit is contained in:
1 parent
96b99784b5
commit
76ead9567c
4 files changed
+51
-6
No files matched your search
@@ -32,6 +32,7 @@ muts=[
|
||||
('N4 offset ratio unchecked',F,' && reach <= short * MAX_FRAME_OFFSET_RATIO;',' ;',VIS),
|
||||
('N5 reach on the near edges only',F,' let reach = [min_x, min_y, min_x + width, min_y + height]',' let reach = [min_x, min_y]',VIS),
|
||||
('N6 reach without abs',F,' .fold(0.0_f64, |m, v| m.max(v.abs()));',' .fold(0.0_f64, |m, v| m.max(*v));',VIS),
|
||||
('N8 path numbers past 2^20 read',"crates/core/src/anatomy/path.rs",' .filter(|n| n.abs() <= super::frame::MAX_FRAME_MAGNITUDE)',' .filter(|n| n.is_finite())',VIS),
|
||||
('N7 non-finite accepted',F,' let usable = finite\n',' let usable = true\n','--lib'),
|
||||
# Equivalent: the aspect rule (long <= short * 100) refuses a zero or negative span already.
|
||||
('F5 zero width accepted (moved, equivalent)',F,' && short >= MIN_FRAME_SPAN\n',' && short >= -1.0\n','sheet_frame'),
|
||||
|
||||
Reference in new issue
Block a user