psbt.h:644:51: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' #25749

issue MarcoFalke opened this issue on July 30, 2022
  1. MarcoFalke commented at 1:49 PM on July 30, 2022: member

    Steps to reproduce:

    • Build with integer sanitizer
    • UBSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1" ./src/qt/bitcoin-qt
    • Enter into the RPC debug console: decodepsbt "cHNidP8BAKOro2MDAwMDA5ggCAAA////CQAtAAD+///1AAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAD+///1Zm9ybmV3nWx1Y2vmelLmegAAAAAAAAAAAAAAAAAAAAMKAwMDAwMDAwMDAwMACvMBA3FkAAAAAAAAAAAABAAlAAAAAAAAACEWDQ0zDQ0NDQ0NDQ0NCwEAAH9/f39/fwMAAABNo6P///kAAA=="
  2. MarcoFalke added the label Bug on Jul 30, 2022
  3. MarcoFalke added this to the milestone 24.0 on Jul 30, 2022
  4. fanquake commented at 8:57 AM on August 9, 2022: member
  5. achow101 cross-referenced this on Aug 9, 2022 from issue psbt: Avoid unsigned int overflow in PSBT_IN_TAP_BIP32_DERIVATION by achow101
  6. achow101 commented at 9:22 PM on August 9, 2022: member
  7. fanquake referenced this in commit 0094ff3947 on Aug 11, 2022
  8. fanquake closed this on Aug 11, 2022

  9. sidhujag referenced this in commit 47449b0492 on Aug 11, 2022
  10. bitcoin locked this on Aug 11, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:53 UTC