This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
unwinding: perform more bounds checking #185
Labels
difficulty: easy
Pretty easy to solve
priority: low
Low priority for the Knurling team
status: needs PR
Issue just needs a Pull Request implementing the changes
topic: unwinding
type: enhancement
Enhancement or feature request
as seen in PR #184, the probe-rs API does not perform bounds checking so reading invalid (RAM) memory returns 0 (observed behavior so far; it may return junk with different probes). Thus we should do some bound checking on the
probe-run
side. That PR adds bound checking to the operation of "read stacked registers" but we should be more thorough and validate all memory operations (be it RAM or Flash). (The "read core register" operation does not need to be validated I think)Instances that should be checked:
read_word_32
inprobe-run/src/registers.rs
Line 70 in e8be32a
The text was updated successfully, but these errors were encountered: