mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 11:28:14 +00:00
ethereum: clear local variables in layoutEthereumFee
This commit is contained in:
parent
c7af39bf8d
commit
fd46339f5c
@ -377,6 +377,9 @@ static void layoutEthereumFee(const uint8_t *value, uint32_t value_len,
|
|||||||
char tx_value[32];
|
char tx_value[32];
|
||||||
char gas_value[32];
|
char gas_value[32];
|
||||||
|
|
||||||
|
memzero(tx_value, sizeof(tx_value));
|
||||||
|
memzero(gas_value, sizeof(gas_value));
|
||||||
|
|
||||||
memzero(pad_val, sizeof(pad_val));
|
memzero(pad_val, sizeof(pad_val));
|
||||||
memcpy(pad_val + (32 - gas_price_len), gas_price, gas_price_len);
|
memcpy(pad_val + (32 - gas_price_len), gas_price, gas_price_len);
|
||||||
bn_read_be(pad_val, &val);
|
bn_read_be(pad_val, &val);
|
||||||
|
Loading…
Reference in New Issue
Block a user