BitBoxSwiss / bitbox02-firmware

Firmware code of the BitBox02 hardware wallet
https://bitbox.swiss/bitbox02
Apache License 2.0
217 stars 81 forks source link

keystore: put bip39 word pointers onto heap, not stack #1078

Closed benma closed 1 year ago

benma commented 1 year ago

No need to copy that many bytes by having it on the stack.

Also somehow this reduces the binary size by 1472 bytes, which is quite a lot.