Files
ZephCore/zephcore
Pieter ViljoenandClaude Opus 5.5 8190b4018e cli: reject a negative sensor list start index
`sensor list <start>` parsed start with _atoi(), whose uint32_t goes
negative as an int: a start of 4294967295 is -1 and 2147483648 is
INT_MIN. Both passed the `start >= end` guard, so the loop asked the
sensor manager for a negative index and passed the NULL it returned
to "%s=%s", undefined behaviour that picolibc happens to print as
"(null)". Rejecting a negative start closes it: ZephyrSensorManager
has one setting, so only index 0 is ever requested.

The same defect as meshcore-dev/MeshCore#3433.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 12:14:47 -07:00
..
2026-09-27 16:33:58 +02:00
2026-10-02 23:10:09 +02:00
2026-09-18 21:25:19 +02:00
2026-10-04 20:49:11 +02:00
2026-10-04 20:54:33 +02:00
2026-10-02 23:10:09 +02:00
2026-10-05 08:39:04 +02:00
2026-09-27 15:27:13 +02:00
2026-10-02 14:25:53 +02:00