Skip to content
Commit 9c6e6d78 authored by Jordan Yates's avatar Jordan Yates Committed by Dan Kalowsky
Browse files

drivers: lora: rylrxxx: fix `snprintf` usage



The second argument should unconditionally be the size of the output
memory area, not computationally derived from the input payload length.
The previous length validations would be incorrect when
`cmd_len == CONFIG_LORA_RYLRXX_CMD_BUF_SIZE`, as `snprintf` would be
told the output buffer was `CONFIG_LORA_RYLRXX_CMD_BUF_SIZE + 1` bytes
long.

Fixes #92619
Fixes #92624

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent ec80ab5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment