Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: Add buffer length checks #9

Open
stijnb1234 opened this issue Aug 9, 2024 · 0 comments
Open

[Feature request]: Add buffer length checks #9

stijnb1234 opened this issue Aug 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@stijnb1234
Copy link

stijnb1234 commented Aug 9, 2024

Background and motivation

I've had the situation that I got weird errors because I tried to write text longer than the buffer can hold. There is no check for buffer length < write length.

Describe the solution expected

Add a check if CONFIG_NEX_UART_TRANS_COMMAND_FORMAT_BUFFER_SIZE is smaller then the amount of bytes to write, then return specific error.

Additional info

No response

@gfurtadoalmeida gfurtadoalmeida added the enhancement New feature or request label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants