Repository navigation
[31.x] Backports - #36901
Merged
Merged
[31.x] Backports#36901
Conversation
The `stl_tree_node`, `list_node` and `unordered_node` class templates only mimic the layout of the standard library's container nodes, so that `sizeof` yields an estimate of the memory they use. Their fields are never accessed. Since llvm/llvm-project#237374, Clang 24 diagnoses these fields with `-Wunused-private-field`. This change drops the `private:` access specifiers. It does not affect the size or alignment of the structs, as all their fields keep the same access control, and it is consistent with `stl_shared_counter`. Github-Pull: bitcoin#36869 Rebased-From: b9a6b0c
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste |
Use of non-target directives is not recommended. As of CMake 4.5.0, it triggers `-Wnon-target-directive` warnings. Github-Pull: bitcoin#36889 Rebased-From: 460f877
The module is superseded by CMake's `-Wnon-target-directive` warnings, which are enabled when using the "dev-mode" preset. Github-Pull: bitcoin#36889 Rebased-From: 435d5b2
fanquake
force-pushed
the
more_31_x_backports
branch
from
November 18, 2026 16:13
d5b8140 to
cc461e3
Compare
Member
|
clACK cc461e3 |
fanquake
marked this pull request as ready for review
November 18, 2026 16:34
MaybeDiscourageAndDisconnect calls DisconnectNode which creates a CSubNet containing only the CNode's address. This will disconnect every CNode with the same IP address. This is normally not a problem, except for clearnet-over-tor. If a node has an honest clearnet-over-tor inbound connection, the IP of the inbound peer will be the exit node's IP address. If an attacker connects to the node through the same exit node and sends an invalid message, they can cause every inbound peer sharing the exit node's IP to get disconnect. Fix this by only disconnecting the misbehaving CNode rather than every CNode sharing the IP. Github-Pull: bitcoin#36894 Rebased-From: d63068c
fanquake
force-pushed
the
more_31_x_backports
branch
from
November 18, 2026 16:54
cc461e3 to
1fed214
Compare
Contributor
|
Checked that 35f34a3 specifically is correct |
Member
|
clACK 1fed214 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Backports:
include_directories->target_include_directories#36889