myxce/src/scheduler
Rongsong Shen 16b7aa4b60
fix(lib,scheduler): zarray_get rejects negative indexes; info resource bounds by capacity (bug-1824)
zarray_get_ex() checked only idx >= caps, so a negative index read
array->data[idx] out of bounds -- reachable through a resource whose
registration failed and kept idx == -1 (xcelimit.c add_vres()). It now
returns NULL for idx < 0.

repl_info_resource_one() bounded a shared resource's slot by
sharedInst.count / sharedInUse.count, the number of populated slots, not
the capacity: a populated slot above that count showed as value=(none).
It now relies on zarray_get()'s own bounds check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-30 03:34:57 +00:00
..
include fix(scheduler): the simulator's threads stop when its run returns (bug-1632, bug-1763) 2026-09-30 02:47:24 +00:00
src fix(lib,scheduler): zarray_get rejects negative indexes; info resource bounds by capacity (bug-1824) 2026-09-30 03:34:57 +00:00
testsuite fix(lib,scheduler): zarray_get rejects negative indexes; info resource bounds by capacity (bug-1824) 2026-09-30 03:34:57 +00:00
CLAUDE.md docs(scheduler): document driver-equivalence invariant, scope decision-parity fix spec 2026-08-22 02:52:00 +00:00
meson.build feat(scheduler-sim-discrete-clock): --sim-speed deprecation-warning helper and discrete-clock test binary (task 1.1) 2026-09-29 04:23:46 +00:00