Currently backports:
Will leave open to collect backports for 22.1,
The old Transifex Command-Line Tool is considered deprecated (as of
January 2022) and will sunset on Nov 30, 2022.
See: https://github.com/transifex/cli/blob/devel/README.md#migrating-from-older-versions-of-the-client
An accompanying PR: https://github.com/bitcoin-core/bitcoin-maintainer-tools/pull/142
Github-Pull: #26321
Rebased-From: d6adbb7ee1de661ad89879609eecd11129322405
2147483647 is the maximum positive value of a signed int32, and - currently -
the maximum value that the deriveaddresses bitcoin RPC call accepts as
derivation index due to its input validation routines.
Before this change, when the derivation index (and thus range_end) reached
std::numeric_limits<int_32_t>::max(), the "i" variable in the for cycle (which
is declared as int, and as such 32 bits in size on most platforms) would be
incremented at the end of the first iteration and then warp back to
-2147483648. This caused SIGABRT in bitcoind and a core dump.
This change assigns "i" an explicit size of 64 bits on every platform,
sidestepping the problem.
Fixes #26274.
Github-Pull: #26275
Rebased-From: addf9d6502db12cebcc5976df3111cac1a369b82
This test would cause a crash in bitcoind (see #26274) if the fix given in the
previous commit was not applied.
Github-Pull: #26275
Rebased-From: 9153ff3e274953ea0d92d53ddab4c72deeace1b1
cherry-pick ACK 403de22119f5c65a9fd43a665c469512b967ed38 🏔
Signature:
0-----BEGIN PGP SIGNED MESSAGE-----
1Hash: SHA512
2
3cherry-pick ACK 403de22119f5c65a9fd43a665c469512b967ed38 🏔
4-----BEGIN PGP SIGNATURE-----
5
6iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
7pUgfnQv9EuZ6SZxUGyBlU/Hm6w0omN/XcMSJoFyyBrEVGO+W3j63W6T41p3G3Y6U
8EmSKdxGIQelclEeyc2dqSA7C8WCTjBIy+nYwlbMLI2ovMXeqMrmO6sc78r/qaBlq
9z6LB0XIuCTjx8MlFz6dw9P9Fzq4S8pZosLua66WmfWpSU8Kidwjnxe1qNVQNVE+r
10TDMY0dIXU4KNGntme/B3ushwV+wX3Shs3l9n9JoE9vCsQMob5HjadsBc0OelmgaF
11fdJRNa/MPOSXnVr27tbYUVYiZl/p6ZMeehuqjkWx0g2H+xozVWAeo07WicqEjceA
12SN6mvNnxInZBtVuC3gi8TxkpzZoLw4xz5jxSxazrWy/l+TIMJEoVhhnbcE6Sh1fX
13GW3WR0RloG01+4xYHZFEpDcFV68c/1DJOcyvdrTqyctswA96o560606QbW2ygoRC
14zOWHdUiQksDufiPkvc1wQV20DAlQzIVtNr9FSxGDnSjnuWsfcKNpfWKU2S+sm2VP
15+RNz/d2y
16=IzZq
17-----END PGP SIGNATURE-----