Commit dd9188d
committed
fix(FCS-1612): Fixed a heap corruption issue when using the sdio interface
Reason:
`at_sdio_read_data(data, len)` may read out more bytes than `len` due to incorrect if condition checks,
leading to memory corruption and causing a crash.
Fix:
Corrected the `if` condition in `at_sdio_read_data()` to ensure that the number of bytes read does not exceed the specified length (`len`),
preventing memory corruption and potential crashes.1 parent 760e656 commit dd9188d
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
0 commit comments