Skip to content

drivers/contactless/pn532: Fix potential overflow#19051

Open
linguini1 wants to merge 1 commit into
apache:masterfrom
linguini1:fix-pn532-overflow
Open

drivers/contactless/pn532: Fix potential overflow#19051
linguini1 wants to merge 1 commit into
apache:masterfrom
linguini1:fix-pn532-overflow

Conversation

@linguini1
Copy link
Copy Markdown
Contributor

Summary

Fixes a potential overflow where more than 16 bytes are written to the cmd_buffer.

Impact

Closes #19036

Testing

I did not test this patch, but it is only an addition of a debug assert. If someone can test this (maybe the original reporter) that would be great, but logically this should not cause any regressions.

Fixes a potential overflow where more than 16 bytes are written to the
cmd_buffer.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
@github-actions github-actions Bot added the Size: XS The size of the change in this PR is very small label Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Stack Overflow in PN532 Contactless Driver

2 participants