Files
OrcaSlicer/src/libslic3r
Kris Austin 6fda82476d fix: out-of-bounds read computing tool-ordering max layer height (#14665)
* fix: out-of-bounds read computing tool-ordering max layer height

calc_max_layer_height() loops over the extruder count (nozzle_diameter)
but indexes max_layer_height with the same counter, reading past the end
when that array is shorter. Silent on release builds, aborts under a
bounds-checked STL (_GLIBCXX_ASSERTIONS).

Read via get_at(), which falls back to the first entry when the index is
out of range, as Slicing.cpp already does for this option.

Add a fff_print regression test slicing a two-extruder printer with a
single-entry max_layer_height.

* docs: clarify how max_layer_height ends up short in the regression test

Normalization sizes it to the filament count under single_extruder_multi_material,
not "a mismatch a profile can ship" as the earlier comment guessed.
2026-07-09 15:47:57 +08:00
..
2026-06-03 10:19:04 -03:00
2024-10-05 21:53:16 +03:00
2026-06-18 09:13:51 -03:00
2026-03-24 09:18:38 -07:00
2023-08-08 19:08:13 +08:00
2026-06-19 09:42:12 +08:00
2026-03-13 02:12:10 -07:00
2026-03-13 02:12:10 -07:00
2023-12-01 10:42:45 +00:00
2022-07-15 23:42:08 +08:00
2022-07-15 23:42:08 +08:00
2022-07-15 23:42:08 +08:00
2025-06-14 21:05:25 +08:00
2026-04-23 00:21:19 +08:00
2025-10-28 15:29:47 +08:00
2023-08-08 19:08:13 +08:00
2026-03-24 09:18:38 -07:00
2026-03-24 09:18:38 -07:00
2024-01-26 20:18:10 +08:00
2026-06-18 09:13:51 -03:00
2022-07-15 23:42:08 +08:00
2026-06-25 11:14:11 +08:00
2023-07-07 17:25:51 +08:00
2023-12-01 10:42:45 +00:00
2026-05-21 09:04:27 +08:00
2024-05-12 23:35:41 +08:00
2025-10-28 15:29:55 +08:00
2026-03-24 09:18:38 -07:00
2025-09-18 17:08:18 +08:00
2025-09-18 17:08:18 +08:00
2025-12-08 22:42:11 +08:00
2022-07-15 23:42:08 +08:00
2026-03-13 01:56:51 -07:00
2026-03-13 01:56:51 -07:00
2024-01-26 20:18:10 +08:00
2026-03-13 01:56:51 -07:00
2026-03-24 09:18:38 -07:00
2026-05-04 15:52:34 +08:00
2026-03-13 01:56:51 -07:00
2026-03-13 01:56:51 -07:00
2025-12-08 22:42:11 +08:00
2026-05-10 02:21:13 +08:00
2022-07-15 23:42:08 +08:00
2023-11-04 11:41:03 +08:00
2022-07-15 23:42:08 +08:00
2023-08-08 19:08:13 +08:00
2026-01-29 19:19:37 +08:00
2026-01-23 17:05:56 +08:00
2025-12-08 22:42:11 +08:00
2025-12-08 22:42:11 +08:00
2026-05-04 20:33:13 +08:00
2022-07-15 23:42:08 +08:00
2022-07-15 23:42:08 +08:00