Skip to content
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

backport: gui: Set CConnman byte counters earlier to avoid uninitialized reads #24

Merged
merged 1 commit into from
Dec 15, 2021

Conversation

fdoving
Copy link
Contributor

@fdoving fdoving commented Dec 14, 2021

Manual backport of bitcoin PR #17906

Initialize CConnman byte counters during construction, so GetTotalBytesRecv()
and GetTotalBytesSent() methods don't return garbage before Start() is called.

Change shouldn't have any effect outside of the GUI. It just fixes a race
condition during a qt test that was observed on travis:
https://travis-ci.org/bitcoin/bitcoin/jobs/634989685

…zed reads

Manual backport of bitcoin PR #17906

Initialize CConnman byte counters during construction, so GetTotalBytesRecv()
and GetTotalBytesSent() methods don't return garbage before Start() is called.

Change shouldn't have any effect outside of the GUI. It just fixes a race
condition during a qt test that was observed on travis:
https://travis-ci.org/bitcoin/bitcoin/jobs/634989685
@alamshafil
Copy link
Contributor

+1

@alamshafil alamshafil changed the base branch from master to dev December 14, 2021 21:45
@alamshafil alamshafil merged commit bb9ee5f into AvianNetwork:dev Dec 15, 2021
alamshafil pushed a commit that referenced this pull request Aug 22, 2022
…zed reads (#24)

Manual backport of bitcoin PR #17906

Initialize CConnman byte counters during construction, so GetTotalBytesRecv()
and GetTotalBytesSent() methods don't return garbage before Start() is called.

Change shouldn't have any effect outside of the GUI. It just fixes a race
condition during a qt test that was observed on travis:
https://travis-ci.org/bitcoin/bitcoin/jobs/634989685

(cherry picked from commit bb9ee5f)
alamshafil added a commit that referenced this pull request Aug 22, 2022
cherry-pick: backport: gui: Set CConnman byte counters earlier to avoid uninitialzed reads (#24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants