-
Notifications
You must be signed in to change notification settings - Fork 38.6k
[wallet] [moveonly] Check non-null pindex before potentially referencing #10265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wallet] [moveonly] Check non-null pindex before potentially referencing #10265
Conversation
|
Nice catch! |
|
utACK 6b816dc. I am surprised there were no more bug report about that. |
|
@kallewoof I would go with temptation and move the |
|
@mchrostowski Did you mean 1545 by any chance? |
|
Concept ACK |
6b816dc to
c36ea69
Compare
|
This PR is now a MOVEONLY. 4 lines moved up to L1547-1550 from L1560-1563. |
|
utACK c36ea69 |
…ially referencing c36ea69 [wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call. (Karl-Johan Alm) Tree-SHA512: a14c9f3e1228bca91977bea821c56a377d80889b41d250050c9be67aa93e460319a7cf1d4b63ee40f23b5a34159590f0e3fe15dc88698dc694c0c8098bd2db4d
…LogPrintf call. Github-Pull: bitcoin#10265 Rebased-From: c36ea69
… potentially referencing c36ea69 [wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call. (Karl-Johan Alm) Tree-SHA512: a14c9f3e1228bca91977bea821c56a377d80889b41d250050c9be67aa93e460319a7cf1d4b63ee40f23b5a34159590f0e3fe15dc88698dc694c0c8098bd2db4d
… potentially referencing c36ea69 [wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call. (Karl-Johan Alm) Tree-SHA512: a14c9f3e1228bca91977bea821c56a377d80889b41d250050c9be67aa93e460319a7cf1d4b63ee40f23b5a34159590f0e3fe15dc88698dc694c0c8098bd2db4d
… potentially referencing c36ea69 [wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call. (Karl-Johan Alm) Tree-SHA512: a14c9f3e1228bca91977bea821c56a377d80889b41d250050c9be67aa93e460319a7cf1d4b63ee40f23b5a34159590f0e3fe15dc88698dc694c0c8098bd2db4d
The once-a-minute
LogPrintfinScanForWalletTransactionswill do a null-ref if it happens to hit the 60s mark right at the last block (wherepindexbecomesnull). This was moved up to the top of the block instead, where thewhile (pindex && !fAbortRescan)has checkedpindexfor us.