marlin/buildroot/tests
CaldurG 830009b890
🐛 Fix NULL pointer in SD sort without name caching (#28909)
With SDSORT_USES_RAM minus SDSORT_CACHE_NAMES and SDSORT_USES_STACK, the sortnames pointer is declared (as its declaration covers DISABLED(SDSORT_USES_STACK)) but the constructor only assigned it under ENABLED(SDSORT_CACHE_NAMES). presort() then writes through the NULL pointer via SET_SORTNAME, hard-faulting the board (e.g. LPC1768) as soon as an SD card with two or more files is mounted.

Assign sortnames whenever it is declared and not heap-allocated: whenever SDSORT_DYNAMIC_RAM is off and either SDSORT_CACHE_NAMES is on or SDSORT_USES_STACK is off. This also skips the wasted static allocation when SDSORT_DYNAMIC_RAM applies.

Add a build test (LPC1768/config-07) covering the crashing combo.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-26 01:43:35 -06:00
..
ARMED ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
at90usb1286_cdc ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
at90usb1286_dfu ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
BTT_BTT002 ✨ Trinamic homing: TMC2240 StallGuard4, Homing Hybrid Threshold (#28678) 2026-10-14 21:13:41 -05:00
BTT_GTR_V1_0 ✨ EVENT_GCODE_PARK_Tx (#27459) 2026-09-05 00:43:47 -05:00
BTT_GTR_V1_0_usb_flash_drive ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
BTT_SKR_PRO ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
BTT_SKR_SE_BX 🚸 TFT large and small fonts (#28641) 2026-10-08 22:19:48 -05:00
chitu_f103 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
DUE ✨ PROBE_Z0_BEFORE_G29 (#28418) 2026-09-05 12:54:11 -05:00
DUE_archim ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
EASYTHREED_ET4000_PLUS ✅ HAL for Artery Technology AT32F403 (Wanhao 0327001) (#28488) 2026-11-08 15:24:30 -06:00
EASYTHREED_K7_REVB_AT32F407 ✅ HAL for Artery Technology AT32F403 (Wanhao 0327001) (#28488) 2026-11-08 15:24:30 -06:00
esp32_idf3 ✨ EMERGENCY_PARSER for ESP32 (#28790) 2026-11-03 14:26:19 -06:00
esp32_idf4 ✨ ESP32-S2 and ESP32-S3 support (arduino-esp32 2.0.7, ESP-IDF 4.4) (#28781) 2026-11-22 19:38:10 -06:00
esp32s2_idf4 ✨ ESP32-S2 and ESP32-S3 support (arduino-esp32 2.0.7, ESP-IDF 4.4) (#28781) 2026-11-22 19:38:10 -06:00
esp32s3_idf4 ✨ ESP32-S2 and ESP32-S3 support (arduino-esp32 2.0.7, ESP-IDF 4.4) (#28781) 2026-11-22 19:38:10 -06:00
FLYF407ZG 🔧 M423 X-Axis Twist Compensation without LCD (#28606) 2026-09-27 20:45:19 -05:00
GD32F103RC_aquila_mfl 🔧 Fix NO_SD_HOST_DRIVE, warn on override 2026-09-06 13:05:52 -05:00
GD32F303RE_creality_mfl ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
GD32F303RG_kobra2_neo_mfl ✨ Anycubic Kobra 2 Neo board (TriGorilla Gen V4.0.1) (#28769) 2026-11-08 15:21:53 -06:00
HC32F460C_aquila_101 🔧 Fix NO_SD_HOST_DRIVE, warn on override 2026-09-06 13:05:52 -05:00
HC32F460C_kobra_go ✨ Anycubic Kobra Max / Neo / Go board, display (beta) (#28448) 2026-10-14 12:04:36 -05:00
HC32F460C_kobra_max ✨ Anycubic Kobra Max / Neo / Go board, display (beta) (#28448) 2026-10-14 12:04:36 -05:00
HC32F460E_kobra_go ✨ Anycubic Kobra Max / Neo / Go board, display (beta) (#28448) 2026-10-14 12:04:36 -05:00
HC32F460E_kobra_neo ✨ Anycubic Kobra Max / Neo / Go board, display (beta) (#28448) 2026-10-14 12:04:36 -05:00
I3DBEEZ9_V1 ✨ FTMotion Constant Jolt Trajectory planner (#28476) 2026-06-28 15:43:50 -05:00
jgaurora_a5s_a1_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
LERDGEK ✨ G-code preview for TFT_COLOR_UI (#28189) 2026-11-17 00:02:56 -06:00
LERDGEX ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
linux_native ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
LPC1768 🐛 Fix NULL pointer in SD sort without name caching (#28909) 2026-11-26 01:43:35 -06:00
LPC1769 🔧 Delta sanity checks (#28692) 2026-11-09 20:09:25 -06:00
malyan_M300 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mega1280 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mega2560 ♻️ Track heaters time in target range (#28885) 2026-11-20 23:05:05 -06:00
mega2560ext ✨ G33 least-squares (Minor Squares) delta calibration (#28889) 2026-11-21 19:42:01 -06:00
melzi_optiboot ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_dlc32_v2_1 ⬆️ MKS DLC32 V2.1: espressif32 6.1.0 (arduino-esp32 2.0.7) (#28718) 2026-11-05 22:48:05 -06:00
mks_e3d_v2 ♻️ Track heaters time in target range (#28885) 2026-11-20 23:05:05 -06:00
mks_robin ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_robin_e3 🔨 STM32duino 2.6.0 (ststm32 17.1.0) (#28631) 2026-10-11 10:26:34 -05:00
mks_robin_lite_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_robin_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_robin_mini ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_robin_nano_v1_3_f4_usbmod ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_robin_nano_v1v2 ✅ Fix MKS Robin Nano V2 MKS WiFi test (#28818) 2026-11-10 17:15:18 -06:00
mks_robin_nano_v1v2_maple 🔧 Separate MKS WiFi module (#28562) 2026-10-28 22:42:19 -05:00
mks_robin_nano_v1v2_usbmod ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_robin_nano_v3 ✨ Galaxy UI for 480x320 touch screens (#28702) 2026-11-05 12:32:54 -06:00
mks_robin_pro2 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_robin_pro_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
mks_tinybee ✨ ESP32-S2 and ESP32-S3 support (arduino-esp32 2.0.7, ESP-IDF 4.4) (#28781) 2026-11-22 19:38:10 -06:00
NUCLEO_F767ZI ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
Opulo_Lumen_REV3 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
PANDA_PI_V29 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
PRUSA_BUDDY ✨ Prusa Buddy (STM32F407VG) (#28580) 2026-10-02 14:33:38 -05:00
rambo 🐛 MMU3: Restore temperatures after Hotend Idle Timeout (#28778) 2026-11-01 23:51:14 -06:00
REMRAM_V1 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
rumba32 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
SAMD21_minitronics20 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
SAMD51_grandcentral_m4 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
sanguino644p ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
sanguino1284p ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
simulator_linux_release ✨ ENDSTOP_INTERRUPTS_FEATURE for Simulator (#28875) 2026-11-21 01:40:01 -06:00
SKR_Pico 🩹 Fix RP2040 sensorless homing, servos, and M997 (#28566) 2026-11-03 19:29:36 -06:00
STM32F070CB_malyan ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F070RB_malyan ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103CB_malyan ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103RC_btt 🔧 Unified input shaping Resonance Test (#28282) 2026-06-16 05:39:14 -05:00
STM32F103RC_btt_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103RC_btt_USB ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103RC_btt_USB_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103RC_fysetc ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103RC_fysetc_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103RC_meeb_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103RE 🐛 Fix wizard preheat, Neptune X, STM32F103RE test (#28630) 2026-10-03 08:27:34 -05:00
STM32F103RE_btt ✨ Creality CR-6 SE with Touch Screen (#19958) 2026-11-22 14:41:04 -06:00
STM32F103RE_btt_USB ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103RE_creality ✨ Creality CR-6 SE with Touch Screen (#19958) 2026-11-22 14:41:04 -06:00
STM32F103VE_GTM32 🔨 STM32 env for GTM32 Pro VB (#28720) 2026-10-20 19:12:12 -05:00
STM32F103VE_longer ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103VE_longer_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F103VE_ZM3E4V2_USB_maple ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F401RC_creality ✨ Creality Sermoon V1 / V1 Pro: board and stock touchscreen (#28623) 2026-11-03 15:43:45 -06:00
STM32F401RE_creality 🐛 CREALITY_RTS build without PID heating (#28815) 2026-11-10 21:13:47 -06:00
STM32F407VE_black ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32F446VE_fysetc 🚸 Power-loss resume prompt on FTDI EVE and PanelDue (#28794) 2026-11-05 12:06:56 -06:00
STM32G0B1RE_btt ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
STM32G0B1RE_manta_btt ✨ CAN bus for STM32, with Klipper toolhead discovery (#28847) 2026-11-13 23:49:09 -06:00
STM32H723VG_btt ✨ CAN bus for STM32, with Klipper toolhead discovery (#28847) 2026-11-13 23:49:09 -06:00
STM32H723VG_fysetc ✨ FYSETC Spider V3.0 H7 (STM32H723VG) (#28629) 2026-10-07 15:14:27 -05:00
STM32H743VI_btt ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
teensy31 ♻️ Refactor CI Tests with INI (#28407) 2026-04-22 01:40:47 -05:00
teensy35 🔧 Sort out Solenoid pins 2026-10-17 14:13:33 -05:00
teensy41 ✨ More TMC chopper timing presets (#28617) 2026-10-20 14:31:05 -05:00
WANHAO_0327001 ✅ HAL for Artery Technology AT32F403 (Wanhao 0327001) (#28488) 2026-11-08 15:24:30 -06:00
schema-test.py 🐛 Fix schema.py inline block comment swallowing #endif (#28805) 2026-11-05 22:39:32 -06:00