Commit 7cad746
committed
sd: use right types for length_out
The out length param defined in f_read is of type UINT (typedef of
unsigned int).
The sd_load_bin function uses size_t for the out length param.
On the BitBox02 they are both 4 bytes so it works out. On x86, size_t
is 8 bytes while unsigned int is only 4 bytes, which leads to a
corrupt value due to the invalid cast.1 parent eb80872 commit 7cad746
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
273 | 276 | | |
274 | 277 | | |
275 | 278 | | |
| |||
0 commit comments