Merge #18416: util: Limit decimal range of numbers ParseScript accepts

Merge #18416: util: Limit decimal range of numbers ParseScript accepts

9ab14e4d21c73d16d8d782f1576fe29e659e2a70 Limit decimal range of numbers ParseScript accepts (pierrenn)

Pull request description:

  Following up on this suggestion : https://github.com/bitcoin/bitcoin/pull/18413#issuecomment-602966490, prevent the output of `atoi64` in the `core_read.cpp:ParseScript` helper to send to `CScriptNum::serialize` values wider than 32-bit.

  Since the `ParseScript` helper is only used by the tool defined in `bitcoin-tx.cpp`, this only prevents users to provide too much unrealistic values.

ACKs for top commit:
  laanwj:
    ACK 9ab14e4d21c73d16d8d782f1576fe29e659e2a70

Tree-SHA512: ee228269d19d04e8fee0aa7c0ae2bb0a2b437b8e574356e8d9b2279318242057d51fcf39a842aa3afe27408d0f2d5276df245d07a3f4828644a366f80587b666

情報元 - Merge #18416: util: Limit decimal range of numbers ParseScript accepts · bitcoin/[email protected] · GitHub

Merge #18416: util: Limit decimal range of numbers ParseScript accepts · bitcoin/bitcoin@b53af72 · GitHub
スポンサーリンク

シェアする

フォローする

スポンサーリンク

トップへ戻る