1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

transaction: Fix buffer overflow

This commit is contained in:
Saleem Rashid 2017-06-12 17:33:09 +01:00 committed by Pavol Rusnak
parent 5cac99fdf4
commit 09917920ba

View File

@ -64,7 +64,7 @@ bool compute_address(const CoinType *coin,
bool has_multisig, const MultisigRedeemScriptType *multisig,
char address[MAX_ADDR_SIZE]) {
uint8_t raw[32];
uint8_t raw[34];
uint8_t digest[MAX_ADDR_RAW_SIZE];
size_t prelen;