d0k3 / GodMode9

GodMode9 Explorer - A full access file browser for the Nintendo 3DS console :godmode:
GNU General Public License v3.0
2.15k stars 194 forks source link

Fix uninitialized variable on unaligned SPI Xfer #662

Closed Wolfvak closed 3 years ago

Wolfvak commented 3 years ago

We use a stack-allocated u32 to store a temporary word that gets memcpy'd from a potentially unaligned buffer, but the size of the copy could be less than 4 bytes, therefore leaving garbage in the upper bits of said word. This fixes CODEC in Corgi3DS.

d0k3 commented 3 years ago

Merged