Commit 948078a
zwave_rx: Harden zwave_rx_print_protocol_version in zwave_rx.c
Checking snprintf results, this was found using CodeQL
Potential fix for code scanning alert no. 15:
Potentially overflowing call to snprintf
For the record this function escape the git commit to hex form (in ascii)
Origin: SiliconLabsSoftware#104
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Relate-to: SiliconLabsSoftware#100
Signed-off-by: Philippe Coval <[email protected]>1 parent 8bc24a8 commit 948078a
1 file changed
+13
-5
lines changedLines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
| |||
0 commit comments