Skip to content

Conversation

@jonrebm
Copy link
Contributor

@jonrebm jonrebm commented Dec 14, 2025

The previous implementation was unable to handle any command sequences split across the (maximum) 1024 bytes buffers, leading to crashes, out-of-bounds access and data corruption.

The previous implementation went into great detail handling plenty of command strings but only provided stubs debug-printing those commands.

To keep the code concise, the debug-prints in the new version are just a hexdump of all command sequences it extracts from the bytestream (regardless of whether they're handled or not). There are no more stubs for individual unsupported command sequences.

@jonrebm jonrebm marked this pull request as draft December 14, 2025 20:57
@ukleinek ukleinek mentioned this pull request Jan 26, 2026
The previous implementation was unable to handle any command sequences
split across the (maximum) 1024 bytes buffers, leading to crashes,
out-of-bounds access and data corruption.

The previous implementation went into great detail handling plenty of
command strings but only provided stubs debug-printing those commands.

To keep the code concise, the new version prints a hexdump of all
command sequences it extracts from the bytestream (regardless of whether
they're handled or not).

Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
@jonrebm jonrebm marked this pull request as ready for review January 27, 2026 09:37
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.

3 participants