Author: Toshi Morita 2014-05-30 00:01:23
Published on: 2014-05-30T00:01:23+00:00
During a test run of bitcoind under valgrind, an uninitialized variable was discovered in some instances. The error message indicated that a conditional jump or move depends on uninitialised value(s) in CWallet::LoadKeyMetadata. Further analysis revealed that the bug occurs because nTimeFirstKey is not initialized when the wallet is instantiated. This issue is present in the source code for bitcoin and has been identified using Valgrind-3.8.1 and LibVEX. The code is located in the wallet.cpp file, specifically on line 63. The error can be fixed by initializing nTimeFirstKey or ensuring it is given a value before use.
Updated on: 2023-06-08T23:28:42.537200+00:00