We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4da3f9f commit e764601Copy full SHA for e764601
src/addrman_impl.h
@@ -32,6 +32,13 @@ static constexpr int ADDRMAN_NEW_BUCKET_COUNT{1 << ADDRMAN_NEW_BUCKET_COUNT_LOG2
32
static constexpr int32_t ADDRMAN_BUCKET_SIZE_LOG2{6};
33
static constexpr int ADDRMAN_BUCKET_SIZE{1 << ADDRMAN_BUCKET_SIZE_LOG2};
34
35
+/**
36
+ * User-defined type for the internally used nIds
37
+ * This used to be int, making it feasible for attackers to cause an overflow,
38
+ * see https://bitcoincore.org/en/2024/07/31/disclose-addrman-int-overflow/
39
+ */
40
+using nid_type = int64_t;
41
+
42
/**
43
* Extended statistics about a CAddress
44
*/
0 commit comments