Skip to content

[Audit] 4 correctness defects with evidence + patches: MIRROR dimension rotation, layer-rename viewport staleness, gradient hatch angle, PLOTTERMANAGER margin axis #1232

Done

Description

@midasmatterhorn

Hi! I run a volunteer audit effort over the ArtCraft suite (https://github.com/storytold/cadcraft at fc4e983, audited 2026-10-14). This pass surfaced several defect(s) I'm confident enough to report. Every finding below has file:line evidence, a concrete reachability argument, and a minimal fix sketch with a regression test. The audit was AI-assisted (DeepSeek via OpenCode, max reasoning effort) and then curated for reachability; duplicates of your open issues were deliberately excluded (the "not reported" notes at the end list what was checked and ruled out, so the list isn't read as exhaustive-by-omission).

Repo: storytold/cadcraft @ fc4e983 (Release 0.7.0), working tree clean.
Method: policy-conformance sweep (the repo denies unwrap/expect/panic via clippy; a stripped-test scan of all
production code found no reachable panic paths), then a close read of the hostile-input modules (crates/io,
crates/dxf, crates/dwg, crates/mcp) and the entity/command paths. Five findings survived verification.
Candidates that map to already-known upstream issues/PRs were dropped (see Excluded below).

Patches: patches/001..005. All five apply cleanly in sequence to fc4e983 and are rustfmt --check-clean with
the repo's rustfmt.toml (verified on copies outside the repo; no builds were run and no repo file was modified).


1. properties.set discards a hatch's custom .pat pattern definition (dead store + data loss)

  • Severity: data-loss / wrong drawing (the hatch draws and saves as ANSI31)
  • Confidence: high
  • Patch: patches/001-properties-set-hatch-pattern.diff

Evidence — crates/engine/src/cmd/props.rs:378-391:

EntityKind::Hatch(h) => {
    if let Some(v) = str_param(p, "pattern") {
        if !h.pattern.eq_ignore_ascii_case(v) {
            h.pattern_lines = super::hatch::lines_for(v);   // 381: dead store
        }
        h.pattern = v.to_ascii_uppercase();
        // The old pattern's definition lines no longer apply.
        h.pattern_lines.clear();                            // 385: unconditional
        h.solid = h.pattern == "SOLID";

lines_for returns the line families only for user patterns loaded from a .pat file, and empty for library
patterns (crates/engine/src/cmd/hatch/patfile.rs:33-38); the renderer draws from pattern_lines when present and
falls back to the library or ANSI31 otherwise (crates/render/src/hatch.rs:280-283), and the DXF writer uses them
for the definition groups (crates/io/src/dxf_write.rs:1023-1027).

Reachability. Load a user pattern and set it on a hatch, then run the generic property command — the same
form the Properties palette / scripts / MCP send:

hatch       {"points": [[5,5]], "pattern": "MYGRID", "patternText": "*MYGRID\n0,0,0,0,.5\n90,0,0,0,.5\n"}
properties.set {"handles": ["<hatch>"], "pattern": "MYGRID"}

Line 385 clears the lines unconditionally, so even re-setting the same name wipes the definition that
crates/engine/tests/lin_pat_files.rs:111-131 proves the hatch must keep (HATCH and HATCHEDIT both keep it —
crates/engine/src/cmd/hatch/edit.rs:145-161 — and MATCHPROP copies it). The hatch then draws as ANSI31 and is
saved with ANSI31's definition groups under the user's pattern name: silent corruption on save.

Proposed fix. Delete the dead conditional and the unconditional clear; recompute from the final name, exactly
as HATCHEDIT does:

h.pattern = v.to_ascii_uppercase();
h.pattern_lines = super::hatch::lines_for(&h.pattern);
h.solid = h.pattern == "SOLID";

Regression test (in the patch, crates/engine/tests/lin_pat_files.rs:
properties_set_pattern_keeps_a_user_patterns_definition): create MYGRID from patternText, then
properties.set the same name (lines kept), then MYSTEPS (its lines brought), then ANSI31 (lines empty).
Fails on the current code at the first assertion.


2. MIRROR misuses the transform rotation for dimensions: a rotated linear dimension measures the wrong thing

  • Severity: correctness (dimension reads a wrong number; dimension line drawn in the wrong direction)
  • Confidence: high (math verified against Mat3::mirror/rotation(); renderer use verified)
  • Patch: patches/002-mirror-dimension-direction.diff

Evidence — crates/doc/src/entity.rs:1294-1296, and the same root cause in
crates/doc/src/entity.rs:603-605:

if let DimKind::Linear { rotation } = &mut d.kind {
    *rotation = cadcraft_geom::norm_angle(*rotation + rot);   // 1295
}
if let Some(a) = &mut self.oblique {
    *a = cadcraft_geom::norm_angle(if mirror { rot - (*a - rot) } else { *a + rot });   // 604
}

rot is m.rotation() = atan2(b, a) of the transformed X axis. For a reflection at axis angle φ,
Mat3::mirror yields rot = 2φ, and a direction α reflects to 2φ − α = rot − α (the Insert arm at
entity.rs:1278-1281 and the Arc arm at 1205-1211 both use the reflected form). + rot and 2rot − a are
therefore wrong whenever the mirror line isn't axis-aligned.

Reachability. dimlinear accepts rotation (crates/engine/src/cmd/annotate.rs), and the renderer treats it
as the dimension-line direction and recomputes the measurement from it
(crates/render/src/dim.rs:517 Vec2::from_angle(rotation), :530 let meas = (p2 - p1).dot(dir).abs();).
Concrete: a dimlinear {"p13":[0,0],"p14":[7.071,7.071],"rotation":45} measures 10; MIRROR it across the X
axis (a very common operation) and with the current code rotation stays 45° while p14 becomes (7.071,−7.071),
so the dimension re-renders reading 0. The oblique case (dimedit Oblique, stored WCS-absolute at
crates/render/src/dim.rs:522-526) is double-reflected: a 45° mirror turns 60° into 120° instead of 30°
(and 2·rot−a happens to be right only for axis-aligned mirror lines, which is why it goes unnoticed).

Proposed fix.

*rotation = cadcraft_geom::norm_angle(if mirror { rot - *rotation } else { *rotation + rot });
...
*a = cadcraft_geom::norm_angle(if mirror { rot - *a } else { *a + rot });

Regression test (in the patch, crates/doc/src/tests.rs:
mirroring_a_rotated_dimension_reflects_its_direction): mirror a 45° linear dimension across X, assert the
direction is −45° and p2 · dir is still 10; mirror a dimension with oblique = 60° across the 45° line and
assert 30°. Both assertions fail on the current code.


3. Renaming a layer leaves every viewport's frozen list and colour overrides stale

  • Severity: correctness (a renamed frozen layer is no longer frozen; overrides point at a name that no longer exists)
  • Confidence: high
  • Patch: patches/003-layer-rename-viewports.diff

Evidence — crates/engine/src/cmd/layer.rs:238-253 (rename body) updates entity layers, CLAYER and block
definitions but not the viewports:

    if let Some(nn) = new_name {
        l.name = nn.clone();
        repoint(&mut d.model, &old, &nn);
        for layout in &mut d.layouts {
            repoint(&mut layout.entities, &old, &nn);
        }
        for block in d.blocks.values_mut() { ... }

The drawing already owns the right helper for exactly this name-keyed state on delete/merge —
crates/engine/src/cmd/layer/merge.rs:92-116 forget_in_viewports ("Drop the removed layers from every layout
viewport's frozen list and colour overrides"), called from layer.rs:301 (layer.delete) and
merge.rs:144/171 (LAYMRG/LAYDEL) — but rename never calls the rename equivalent (it doesn't exist).

Reachability.

viewport.set {"handle": "<vp>", "freeze": ["Walls"], "colors": {"Walls": "red"}}
rename       {"table": "layer", "from": "Walls", "to": "Murs"}   # or layer.set {"newName": "Murs"}

From now on the viewport no longer freezes “Murs” (the renderer matches names case-insensitively,
crates/render/src/lib.rs:961), the colour override is dead, and a DXF save writes the dangling
CADCRAFT VPFROZEN name while dropping the 341 handle (crates/io/src/dxf_write.rs:1072-1086) — a silent
appearance change on screen and on paper.

Proposed fix. Add rename_in_viewports(d, old, new) next to forget_in_viewports (rewrite matching names in
v.frozen_layers and v.layer_colors), and call it from the rename block in layer.rs right after the block
repoint loop.

Regression test (in the patch, crates/engine/tests/layer_merge_delete.rs:
renaming_a_layer_repoints_viewport_lists): build the existing drawing() fixture (viewport freezes A, colours
B), rename A via rename and B via layer.set {"newName"}, assert the viewport lists follow each time and undo
restores them. Fails on the current code.


4. ROTATE turns a gradient hatch's pattern angle but not its gradient angle

  • Severity: correctness (the fill's direction ignores the edit)
  • Confidence: high
  • Patch: patches/004-rotate-gradient-angle.diff

Evidence — crates/doc/src/entity.rs:1329-1341 (the Hatch arm of EntityKind::transform):

h.scale *= s;
h.angle = cadcraft_geom::norm_angle(h.angle + rot);
h.origin = m.apply(h.origin);

h.gradient is untouched. The gradient's direction comes only from gradient.angle
(crates/render/src/hatch.rs:223-224 let angle = ...; let dir = Vec2::new(angle.cos(), angle.sin())), while
the engine sets both fields from the same value when the fill is made
(crates/engine/src/cmd/hatch.rs:297 g.angle = ...to_radians(), :303 self.angle = ...), so after a
rotation the two silently diverge.

Reachability. Any ROTATE (or grip-rotate) of a gradient hatch:

gradient {"points": [[5,5]], "angle": 45}     # g.angle = h.angle = 45°
rotate   {"handles": ["<hatch>"], "base": [0,0], "angle": 90}

h.angle becomes 135° but the fill still runs at 45°: the hatch's appearance does not follow the transform.

Proposed fix.

h.angle = cadcraft_geom::norm_angle(h.angle + rot);
// The gradient fill's direction is its own angle: it follows the hatch.
if let Some(g) = &mut h.gradient {
    g.angle = cadcraft_geom::norm_angle(g.angle + rot);
}

Regression test (in the patch, crates/doc/src/tests.rs:
rotating_a_gradient_hatch_turns_its_gradient): build a SOLID hatch with gradient.angle = 45°, apply
Mat3::rotate(90°), assert the gradient angle became 135°. Fails on the current code.


5. PLOTTERMANAGER checks paper margins against the wrong axis (min/max of width and height)

  • Severity: correctness (invalid paper accepted with a negative printable area; valid landscape paper refused)
  • Confidence: high
  • Patch: patches/005-plotter-margins-axis.diff

Evidence — crates/engine/src/cmd/plotters.rs:496:

[l, b, r, t] if a.iter().all(|v| v.is_finite() && (0.0..=1000.0).contains(v)) && l + r < w.min(h) && b + t < w.max(h) => {

Horizontal margins are checked against min(w, h) and vertical ones against max(w, h). The contract (same
line's error text: “leaving a printable area”) is l + r < w and b + t < h. The built-in papers are
generated portrait (min = w, max = h), which masks the swap; any custom landscape paper exposes it, and the
existing test only uses a 100×100 square (crates/engine/tests/plotters.rs:60).

Reachability.

plottermanager {"action":"set","name":"Office Raster",
                "paper":{"name":"Banner","width":400,"height":200,"margins":[0,250,0,0]}}

is accepted although bottom + top (250 mm) exceed the 200 mm paper height (printable height −50 mm), while
margins:[150,0,150,0] (300 mm of a 400 mm width, a perfectly valid 100 mm printable width) is rejected.
Downstream page_device/sheet then computes a printable rectangle with a negative extent.

Proposed fix. ... && l + r < w && b + t < h (rustfmt then folds the match arm to one line — included in the
patch).

Regression test (in the patch, crates/engine/tests/plotters.rs:
paper_margins_are_checked_against_their_own_axis): on a 400×200 paper, [0,250,0,0] must error and
[150,0,150,0] must succeed. Both assertions fail on the current code.


Excluded after investigation (already tracked upstream)

The following real defects were found and then dropped because the repo's issue tracker already has them
(checked with gh issue list/search on storytold/cadcraft), most with an open fix PR — submitting them again
would be duplicates:

Candidate Upstream
exportpdf from model space ignores scale unless fit:false (crates/io/src/pdf.rs:416/541) issue #1226, PR #1229
A layout plot ignores the scale saved in its page setup (crates/io/src/pdf.rs:425) issue #1163, PR #1219
MTEXT comes out upside down after MIRROR (crates/doc/src/entity.rs:1271) issue #1169, PR #1201
DIMJOGANG written in the wrong unit into DIMSTYLE group 50 (crates/io/src/dxf_ext.rs:120/202/237) issue #1038, PR #1228
BLOCK's keep is matched case-sensitively; unknown values delete the selection (crates/engine/src/cmd/blocks.rs:139/145/222) issue #935 (open)
Dashed lines over 50,000 periods fall back to solid, including in plots (crates/render/src/linetype.rs:14-18) issue #1069
Layout paper units taken from $MEASUREMENT instead of the page setup (crates/render/src/paper.rs:79-82) issue #1058

Ready-to-apply patches for the findings above (regression tests included):

Patch: 002-mirror-dimension-direction.diff (apply with git apply)
diff --git a/crates/doc/src/entity.rs b/crates/doc/src/entity.rs
--- a/crates/doc/src/entity.rs
+++ b/crates/doc/src/entity.rs
@@ -601,7 +601,7 @@
     /// Transform the points and angles (part of [`EntityKind::transform`]).
     fn transform(&mut self, t3: &dyn Fn(&mut Vec3), rot: f64, s: f64, mirror: bool) {
         if let Some(a) = &mut self.oblique {
-            *a = cadcraft_geom::norm_angle(if mirror { rot - (*a - rot) } else { *a + rot });
+            *a = cadcraft_geom::norm_angle(if mirror { rot - *a } else { *a + rot });
         }
         if let Some(j) = &mut self.jog_line {
             t3(j);
@@ -1292,7 +1292,9 @@
                     t3(p);
                 }
                 if let DimKind::Linear { rotation } = &mut d.kind {
-                    *rotation = cadcraft_geom::norm_angle(*rotation + rot);
+                    // A mirror reflects directions about the mirror line; `rot` (the transformed
+                    // X axis) is twice its angle, so a direction `a` lands at `rot - a`.
+                    *rotation = cadcraft_geom::norm_angle(if mirror { rot - *rotation } else { *rotation + rot });
                 }
                 d.marks.transform(&t3, rot, s, mirror);
                 d.block = None;
diff --git a/crates/doc/src/tests.rs b/crates/doc/src/tests.rs
--- a/crates/doc/src/tests.rs
+++ b/crates/doc/src/tests.rs
@@ -130,6 +130,44 @@
     // Without a visible attribute there is nothing to measure.
     assert!(entity_bounds(&d, &ins("Missing", vec![]), 0).is_empty());
     assert!(entity_bounds(&d, &ins("Missing", vec![attrib(true)]), 0).is_empty());
+}
+
+#[test]
+fn mirroring_a_rotated_dimension_reflects_its_direction() {
+    let dim = |kind: DimKind, marks: DimMarks| {
+        EntityKind::Dimension(Dimension {
+            kind,
+            defpt: Vec3::ZERO,
+            text_mid: Vec3::ZERO,
+            p13: Vec3::ZERO,
+            p14: Vec3::new(7.071_067_811_865_475, 7.071_067_811_865_475, 0.0),
+            p15: Vec3::ZERO,
+            p16: Vec3::ZERO,
+            text: String::new(),
+            style: "Standard".into(),
+            measurement: 10.0,
+            text_rotation: 0.0,
+            user_text_pos: false,
+            block: None,
+            overrides: Default::default(),
+            assoc: vec![],
+            marks,
+        })
+    };
+    // A dimension line at 45° mirrored across the X axis runs at -45° and still measures 10.
+    let mut k = dim(DimKind::Linear { rotation: std::f64::consts::FRAC_PI_4 }, DimMarks::default());
+    k.transform(&Mat3::mirror(Vec2::ZERO, Vec2::X));
+    let EntityKind::Dimension(d) = k else { panic!("a dimension") };
+    let DimKind::Linear { rotation } = d.kind else { panic!("a linear dimension") };
+    assert!(close(rotation, 7.0 * std::f64::consts::FRAC_PI_4), "{rotation}");
+    let p2 = Vec2::new(7.071_067_811_865_475, -7.071_067_811_865_475);
+    assert!((p2.dot(Vec2::from_angle(rotation)).abs() - 10.0).abs() < 1e-9, "the mirrored measurement");
+
+    // Oblique extension lines reflect about the mirror line too (a 45° line here).
+    let mut k = dim(DimKind::Aligned, DimMarks { oblique: Some(std::f64::consts::FRAC_PI_3), ..DimMarks::default() });
+    k.transform(&Mat3::mirror(Vec2::ZERO, Vec2::new(1.0, 1.0)));
+    let EntityKind::Dimension(d) = k else { panic!("a dimension") };
+    assert!(close(d.marks.oblique.unwrap_or(0.0), std::f64::consts::FRAC_PI_2 - std::f64::consts::FRAC_PI_3), "{:?}", d.marks.oblique);
 }
 
 #[test]
Patch: 003-layer-rename-viewports.diff (apply with git apply)
diff --git a/crates/engine/src/cmd/layer.rs b/crates/engine/src/cmd/layer.rs
--- a/crates/engine/src/cmd/layer.rs
+++ b/crates/engine/src/cmd/layer.rs
@@ -247,6 +247,7 @@
                 repoint(&mut std::sync::Arc::make_mut(block).entities, &old, &nn);
             }
         }
+        merge::rename_in_viewports(d, &old, &nn);
         if cur.eq_ignore_ascii_case(&old) {
             d.header.set_str("CLAYER", &nn);
         }
diff --git a/crates/engine/src/cmd/layer/merge.rs b/crates/engine/src/cmd/layer/merge.rs
--- a/crates/engine/src/cmd/layer/merge.rs
+++ b/crates/engine/src/cmd/layer/merge.rs
@@ -115,6 +115,39 @@
     }
 }
 
+/// Point every layout viewport's frozen list and colour overrides at a renamed layer.
+pub(super) fn rename_in_viewports(d: &mut Drawing, old: &str, new: &str) {
+    for layout in &mut d.layouts {
+        let hs: Vec<Handle> = layout
+            .entities
+            .iter()
+            .filter(|e| match &e.kind {
+                EntityKind::Viewport(v) => {
+                    v.frozen_layers.iter().any(|l| l.eq_ignore_ascii_case(old)) || v.layer_colors.iter().any(|(l, _)| l.eq_ignore_ascii_case(old))
+                }
+                _ => false,
+            })
+            .map(|e| e.handle)
+            .collect();
+        for h in hs {
+            layout.entities.modify(h, |e| {
+                if let EntityKind::Viewport(v) = &mut e.kind {
+                    for l in &mut v.frozen_layers {
+                        if l.eq_ignore_ascii_case(old) {
+                            *l = new.to_string();
+                        }
+                    }
+                    for (l, _) in &mut v.layer_colors {
+                        if l.eq_ignore_ascii_case(old) {
+                            *l = new.to_string();
+                        }
+                    }
+                }
+            });
+        }
+    }
+}
+
 fn lower_set(names: &[String]) -> HashSet<String> {
     names.iter().map(|n| n.to_ascii_lowercase()).collect()
 }
diff --git a/crates/engine/tests/layer_merge_delete.rs b/crates/engine/tests/layer_merge_delete.rs
--- a/crates/engine/tests/layer_merge_delete.rs
+++ b/crates/engine/tests/layer_merge_delete.rs
@@ -159,3 +159,15 @@
     s.execute("layer.new", &json!({ "name": "C" })).unwrap();
     assert!(viewport_lists(&s).iter().all(|(f, _)| !f.contains(&"C".to_string())));
 }
+
+#[test]
+fn renaming_a_layer_repoints_viewport_lists() {
+    let mut s = drawing();
+    s.execute("rename", &json!({ "table": "layer", "from": "A", "to": "Murs" })).unwrap();
+    assert_eq!(viewport_lists(&s), vec![(vec!["Murs".to_string()], vec!["B".to_string()])]);
+    // layer.set's newName form (what the Properties palette sends) goes through the same path.
+    s.execute("layer.set", &json!({ "name": "B", "newName": "Cloisons" })).unwrap();
+    assert_eq!(viewport_lists(&s), vec![(vec!["Murs".to_string()], vec!["Cloisons".to_string()])]);
+    s.undo().unwrap();
+    assert_eq!(viewport_lists(&s), vec![(vec!["Murs".to_string()], vec!["B".to_string()])], "undo brings the old name back");
+}
Patch: 004-rotate-gradient-angle.diff (apply with git apply)
diff --git a/crates/doc/src/entity.rs b/crates/doc/src/entity.rs
--- a/crates/doc/src/entity.rs
+++ b/crates/doc/src/entity.rs
@@ -1337,6 +1337,10 @@
                 }
                 h.scale *= s;
                 h.angle = cadcraft_geom::norm_angle(h.angle + rot);
+                // The gradient fill's direction is its own angle: it follows the hatch.
+                if let Some(g) = &mut h.gradient {
+                    g.angle = cadcraft_geom::norm_angle(g.angle + rot);
+                }
                 h.origin = m.apply(h.origin);
             }
             EntityKind::Solid(so) | EntityKind::Trace(so) => so.corners.iter_mut().for_each(t3),
diff --git a/crates/doc/src/tests.rs b/crates/doc/src/tests.rs
--- a/crates/doc/src/tests.rs
+++ b/crates/doc/src/tests.rs
@@ -564,3 +564,30 @@
     assert_eq!(p.layout(), Some("Sheet A"));
     assert_eq!(p.tab_name(), "Sheet A");
 }
+
+#[test]
+fn rotating_a_gradient_hatch_turns_its_gradient() {
+    let mut k = EntityKind::Hatch(Hatch {
+        pattern: "SOLID".into(),
+        solid: true,
+        loops: vec![],
+        scale: 1.0,
+        angle: 0.0,
+        associative: false,
+        style: 0,
+        elevation: 0.0,
+        gradient: Some(Gradient {
+            name: "LINEAR".into(),
+            color1: crate::color::Color::Index(5),
+            color2: crate::color::Color::Index(7),
+            angle: std::f64::consts::FRAC_PI_4,
+            centered: true,
+        }),
+        origin: Vec2::ZERO,
+        background: None,
+        pattern_lines: vec![],
+    });
+    k.transform(&Mat3::rotate(std::f64::consts::FRAC_PI_2));
+    let EntityKind::Hatch(h) = k else { panic!("a hatch") };
+    assert!(close(h.gradient.expect("gradient").angle, 3.0 * std::f64::consts::FRAC_PI_4));
+}
Patch: 005-plotter-margins-axis.diff (apply with git apply)
diff --git a/crates/engine/src/cmd/plotters.rs b/crates/engine/src/cmd/plotters.rs
--- a/crates/engine/src/cmd/plotters.rs
+++ b/crates/engine/src/cmd/plotters.rs
@@ -493,9 +493,7 @@
             Some(m) => {
                 let a: Vec<f64> = m.as_array().map(|a| a.iter().filter_map(Value::as_f64).collect()).unwrap_or_default();
                 match a[..] {
-                    [l, b, r, t] if a.iter().all(|v| v.is_finite() && (0.0..=1000.0).contains(v)) && l + r < w.min(h) && b + t < w.max(h) => {
-                        [l, b, r, t]
-                    }
+                    [l, b, r, t] if a.iter().all(|v| v.is_finite() && (0.0..=1000.0).contains(v)) && l + r < w && b + t < h => [l, b, r, t],
                     _ => return Err(bad(cmd, "`paper.margins` must be [left, bottom, right, top] in mm, leaving a printable area")),
                 }
             }
diff --git a/crates/engine/tests/plotters.rs b/crates/engine/tests/plotters.rs
--- a/crates/engine/tests/plotters.rs
+++ b/crates/engine/tests/plotters.rs
@@ -190,3 +190,14 @@
     assert_eq!(r["window"], json!([[0.0, 0.0], [3.0, 4.0]]));
     assert!(s.execute("plotwindow", &json!({"p1": [0, 0], "p2": [3, 0]})).is_err());
 }
+
+#[test]
+fn paper_margins_are_checked_against_their_own_axis() {
+    let mut s = session();
+    s.execute("plottermanager", &json!({"action": "new", "name": "Banner Printer", "output": "png"})).unwrap();
+    let paper = |margins: Value| json!({"action": "set", "name": "Banner Printer", "paper": {"name": "Banner", "width": 400, "height": 200, "margins": margins}});
+    // 250 mm of bottom + top margin leaves no printable height on a 200 mm paper.
+    assert!(s.execute("plottermanager", &paper(json!([0, 250, 0, 0]))).is_err());
+    // 300 mm of left + right margin still leaves 100 mm of printable width on a 400 mm paper.
+    assert!(s.execute("plottermanager", &paper(json!([150, 0, 150, 0]))).is_ok());
+}

Activity

  1. midasmatterhorn commented on Oct 14, 2026

    @midasmatterhorn
    ContributorAuthor

    Update from the original audit author: findings now have open fix PRs:

    Heads-up: earlier comments on this issue said "a PR will follow" for findings 2–4; none had appeared as of today, so we implemented them from the audit patches ourselves. If competing PRs land first, ours can be closed. Red/green verified locally; leaving the issue open until everything lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions