Skip to content

deps: Bump heapless to 0.9.4 to fix RustSec advisories - #759

Merged
rusty1968 merged 2 commits into
OpenPRoT:mainfrom
EnmanuelParache:fix-heapless-rustsec
Nov 19, 2026
Merged

rusty1968 merged 2 commits into
OpenPRoT:mainfrom
EnmanuelParache:fix-heapless-rustsec

Conversation

@EnmanuelParache

@EnmanuelParache EnmanuelParache commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

The RustSec database added several unsound advisories (RUSTSEC-2026-0574, -0575, -0576 and others) against heapless 0.9.3, which made the cargo deny Security Audit job fail.

All are fixed in heapless 0.9.4. This bumps it with cargo update -p heapless@0.9.3 --precise 0.9.4 in third_party/crates_io and regenerates MODULE.bazel.lock. The lockfile regeneration also picks up regex 1.13.2, regex-automata 0.4.19 and regex-syntax 0.8.12, which were already ahead in Cargo.lock.

heapless 0.9.4's Vec::remove has a panic! branch for an out-of-range index that the optimizer no longer elides. That made //target/ast10x0/tests/peripherals/i3c/i3c_irq:no_panics_test fail with "Panic is possible". Attached::detach in target/ast10x0/peripherals/i3c/config.rs already bounds-checks the index, so it now shifts the tail with rotate_left(1) and truncate instead of calling remove. Behaviour is unchanged.

cargo deny check passes locally (advisories, bans, licenses, sources).

Fixes #753

🤖 Generated with Claude Code

The RustSec database added several unsound advisories (RUSTSEC-2026-0574,
-0575, -0576 and others) against heapless 0.9.3, which made the cargo deny
check fail in CI. All are fixed in 0.9.4.

Also regenerate MODULE.bazel.lock to match.

Fixes OpenPRoT#753

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
heapless 0.9.4 Vec::remove has a panic branch that the optimizer no longer
elides, so the i3c_irq no_panics_test fails. detach already bounds-checks
the index, so shift the tail with rotate_left and truncate instead.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@EnmanuelParache EnmanuelParache self-assigned this Nov 19, 2026
@rusty1968
rusty1968 merged commit fe2ca58 into OpenPRoT:main Nov 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RustSec database was upgraded and cargo deny tripped

2 participants