Commit b998bf3
committed
Fix buffer overflow in leadscout hq receive code
The variable block is a 128-byte buffer, but Scout.wifi.client.read was
passed a buffer size of 256, potentially making it overflow the buffer.
This makes the code use sizeof, so the size passed is always correct.1 parent 83a7b7b commit b998bf3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments