Skip to content

Conversation

@fanquake
Copy link
Member

hebasto and others added 3 commits October 28, 2022 11:47
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: bitcoin-core/bitcoin-maintainer-tools#142

Github-Pull: bitcoin#26321
Rebased-From: d6adbb7
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 bitcoin#26274.

Github-Pull: bitcoin#26275
Rebased-From: addf9d6
…s 2147483647

This test would cause a crash in bitcoind (see bitcoin#26274) if the fix given in the
previous commit was not applied.

Github-Pull: bitcoin#26275
Rebased-From: 9153ff3
@maflcko
Copy link
Member

maflcko commented Oct 31, 2022

cherry-pick ACK 403de22 🏔

Show signature

Signature:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

cherry-pick ACK 403de22119f5c65a9fd43a665c469512b967ed38  🏔
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUgfnQv9EuZ6SZxUGyBlU/Hm6w0omN/XcMSJoFyyBrEVGO+W3j63W6T41p3G3Y6U
EmSKdxGIQelclEeyc2dqSA7C8WCTjBIy+nYwlbMLI2ovMXeqMrmO6sc78r/qaBlq
z6LB0XIuCTjx8MlFz6dw9P9Fzq4S8pZosLua66WmfWpSU8Kidwjnxe1qNVQNVE+r
TDMY0dIXU4KNGntme/B3ushwV+wX3Shs3l9n9JoE9vCsQMob5HjadsBc0OelmgaF
fdJRNa/MPOSXnVr27tbYUVYiZl/p6ZMeehuqjkWx0g2H+xozVWAeo07WicqEjceA
SN6mvNnxInZBtVuC3gi8TxkpzZoLw4xz5jxSxazrWy/l+TIMJEoVhhnbcE6Sh1fX
GW3WR0RloG01+4xYHZFEpDcFV68c/1DJOcyvdrTqyctswA96o560606QbW2ygoRC
zOWHdUiQksDufiPkvc1wQV20DAlQzIVtNr9FSxGDnSjnuWsfcKNpfWKU2S+sm2VP
+RNz/d2y
=IzZq
-----END PGP SIGNATURE-----

@maflcko maflcko merged commit 4ff9be5 into bitcoin:22.x Oct 31, 2022
@fanquake fanquake deleted the 22_1_backports branch October 31, 2022 15:54
@bitcoin bitcoin locked and limited conversation to collaborators Oct 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants