Skip to content

[protocol] Add spi check to protect stack leaks#222

Open
esnguyen wants to merge 1 commit intogoogle:mainfrom
esnguyen:esnguyen/spi_leak
Open

[protocol] Add spi check to protect stack leaks#222
esnguyen wants to merge 1 commit intogoogle:mainfrom
esnguyen:esnguyen/spi_leak

Conversation

@esnguyen
Copy link
Collaborator

@esnguyen esnguyen commented Mar 2, 2026

In response to a gh issue identifying some memory safety issue, this seeks to fix the bound check of a spi response buffer to prevent potential stack leaks. The spi response buffer adds an additional check to ensure that the total length of the response does not exceed the buffer size.

Github issue
#221

In response to a gh issue identifying some memory safety issue, this seeks
to fix the bound check of a spi response buffer to prevent potential stack leaks.
The spi response buffer adds an additional check to ensure that the total length
of the response does not exceed the buffer size.

Signed-off-by: Ellis Sarza-Nguyen <sarzanguyen@google.com>
@esnguyen esnguyen force-pushed the esnguyen/spi_leak branch from a1318b7 to 171ba4c Compare March 2, 2026 18:59
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.

1 participant