Fix a null pointer dereference in validateaddress with -disablewallet. Also add a regression testcase.
Problem reported here: #6963 (comment)
I think this needs to be backported to 0.11 as well.
Fix a null pointer dereference in validateaddress with -disablewallet. Also add a regression testcase.
Problem reported here: #6963 (comment)
I think this needs to be backported to 0.11 as well.
Fix a null pointer dereference in validateaddress with -disablewallet. Also add a regression testcase.
Nice catch! I was also looking for the NULL pointer access... we need to be careful by always keeping in mind: #ifdef ENABLE_WALLET != pwalletMain available.
utACK
ACK Checked other instances, OK.
utACK
utACK
On Monday, November 9, 2015, Daniel Cousens notifications@github.com wrote:
utACK
— Reply to this email directly or view it on GitHub #6970 (comment).
backported to 0.11
yes and utACK.
Good news: the issue doesn't exist in 0.11 (and hence not in any released version)
This problem was introduced in 506bae3ac94ae9d5edfa794d9b80a7c9921ace17 (#6262) by @dexX7 . The code used to check for ISMINE_*, which can only be ISMINE_NO if there is no wallet, but that check was removed there.
ut ACK
Thanks for the quick fix!
@laanwj Yes, I confirmed that my node no longer crashes after issuing the validateaddress command. As for the other errors I had posted in my comments, those were errors that the debugger was throwing immediately upon trying to run bitcoind, not upon calling validateaddress.