Fix crash in validateaddress with -disablewallet#6970
Conversation
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: |
|
utACK |
|
ACK |
|
utACK |
|
utACK On Monday, November 9, 2015, Daniel Cousens [email protected]
|
yes and utACK. |
2980a18 Fix crash in validateaddress with -disablewallet (Wladimir J. van der Laan)
|
ut ACK |
|
Thanks for the quick fix! |
|
@jlopp Did it fix your issue? (I still don't see how this can cause a SIGILL in OpenSSL) |
|
@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. |
Github-Pull: bitcoin#6970 Rebased-From: 2980a18
Github-Pull: bitcoin#6970 Rebased-From: 2980a18
Bitcoin 0.12 RPC PRs 1 Cherry-picked from the following upstream PRs: - bitcoin/bitcoin#6266 - bitcoin/bitcoin#6257 - bitcoin/bitcoin#6271 - bitcoin/bitcoin#6158 - bitcoin/bitcoin#6307 - bitcoin/bitcoin#6290 - bitcoin/bitcoin#6262 - bitcoin/bitcoin#6088 - bitcoin/bitcoin#6339 - bitcoin/bitcoin#6299 (partial, remainder in #2099) - bitcoin/bitcoin#6350 - bitcoin/bitcoin#6247 - bitcoin/bitcoin#6362 - bitcoin/bitcoin#5486 - bitcoin/bitcoin#6417 - bitcoin/bitcoin#6398 (partial, remainder was included in #1950) - bitcoin/bitcoin#6444 - bitcoin/bitcoin#6456 (partial, remainder was included in #2082) - bitcoin/bitcoin#6380 - bitcoin/bitcoin#6970 Part of #2074.
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.