Skip to content

fix(tinytransfer): validate packet lengths before parsing - #4

Open
wuisabel-gif wants to merge 3 commits into
mainfrom
fix/validate-packet-lengths
Open

fix(tinytransfer): validate packet lengths before parsing#4
wuisabel-gif wants to merge 3 commits into
mainfrom
fix/validate-packet-lengths

Conversation

@wuisabel-gif

Copy link
Copy Markdown
Member

This PR keeps TinyTransfer from writing past its fixed buffers by rejecting packets that claim to have an oversized payload or log.

@wuisabel-gif wuisabel-gif self-assigned this Sep 12, 2026
Comment thread tinyTransfer.cpp

@TheLastPocket TheLastPocket left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea and helps us better detect errors. I dont think this will cause an error. Just add the comment and you should be good to go

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.

2 participants