myxce/src/scheduler/src
Rongsong Shen 8cff4ac889 fix: add bounds checks in eval_select_simple for null/empty host_eval_ctx; remove empty_ctx hack
- simple_num/simple_str: guard h->numvals/strvals NULL and idx out-of-range before array access
- eval_select_simple SEL_RESNAME: guard host->numvals NULL and idx bounds before deref
- eval_select_inner SEL_RESNAME (memoizing path): same NULL/bounds guards for numvals and strvals
- build_host_eval_ctx: return valid empty context (num_res=0, NULL arrays) instead of NULL when num_res<=0
- sched_meet_host_selection: remove empty_ctx stack hack; always call build_host_eval_ctx which now handles the zero-resource case cleanly
2026-04-30 05:20:37 +00:00
..
plugins save works 2026-03-06 18:20:30 +08:00
decision.c pass pend reason back to controller 2025-12-23 15:29:26 +08:00
handler.c improve configuration handling 2025-12-26 17:52:43 +08:00
main.c scheduling job with fake resource 2025-12-23 18:12:13 +08:00
plugin.c save works 2026-03-04 18:18:53 +08:00
resource.c fix: add bounds checks in eval_select_simple for null/empty host_eval_ctx; remove empty_ctx hack 2026-04-30 05:20:37 +00:00
schedobj.c save works 2026-03-06 18:20:30 +08:00
scheduler.c feat: add sched GC predicate statics; wire sel_optimize_set(1) in sched_init (6-4, 6-9) 2026-04-30 04:13:14 +00:00