Skip to content

Conversation

practicalswift
Copy link
Contributor

Add -fsanitize=integer suppression needed for RPC fuzzer (generateblock).

Context: https://github.com/bitcoin-core/qa-assets/pull/59/checks?check_run_id=2494624259

miner.cpp:130:21: runtime error: implicit conversion from type 'int64_t' (aka 'long') of value 244763573890 (64-bit, signed) to type 'uint32_t' (aka 'unsigned int') changed the value to 4245405314 (32-bit, unsigned)
    #0 0x56143974eaf3 in BlockAssembler::CreateNewBlock(CScript const&) miner.cpp:130:21
    #1 0x56143993690d in generateblock()::$_4::operator()(RPCHelpMan const&, JSONRPCRequest const&) const rpc/mining.cpp:370:127

@maflcko
Copy link
Member

maflcko commented May 3, 2021

#21810 (comment)

@maflcko
Copy link
Member

maflcko commented May 3, 2021

review ACK withdrawn, but this function shouldn't be called by the rpc fuzzer, at least not without sanitizing num_blocks

@practicalswift
Copy link
Contributor Author

practicalswift commented May 3, 2021

@MarcoFalke

#21810 (comment)

review ACK 575792e, but this function shouldn't be called by the rpc fuzzer, at least not without sanitizing num_blocks

generateblock doesn't take num_blocks AFAICT and generate is just a no-op :)

@maflcko
Copy link
Member

maflcko commented May 3, 2021

review ACK 575792e

@maflcko maflcko merged commit bf5e6a7 into bitcoin:master May 3, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 4, 2021
…d for RPC fuzzer (`generateblock`)

575792e fuzz: Add -fsanitize=integer suppression needed for RPC fuzzer (practicalswift)

Pull request description:

  Add `-fsanitize=integer` suppression needed for RPC fuzzer (`generateblock`).

  Context: https://github.com/bitcoin-core/qa-assets/pull/59/checks?check_run_id=2494624259

  ```
  miner.cpp:130:21: runtime error: implicit conversion from type 'int64_t' (aka 'long') of value 244763573890 (64-bit, signed) to type 'uint32_t' (aka 'unsigned int') changed the value to 4245405314 (32-bit, unsigned)
      #0 0x56143974eaf3 in BlockAssembler::CreateNewBlock(CScript const&) miner.cpp:130:21
      #1 0x56143993690d in generateblock()::$_4::operator()(RPCHelpMan const&, JSONRPCRequest const&) const rpc/mining.cpp:370:127
  ```

ACKs for top commit:
  practicalswift:
    > review ACK [575792e](bitcoin@575792e), but this function shouldn't be called by the rpc fuzzer, at least not without sanitizing num_blocks
  MarcoFalke:
    review ACK 575792e

Tree-SHA512: c2133d1064bf17df0e7749ef4a0f7664b5c8082040491a1035d39f0c6e5d96997b347ef2354411e285c7f1f973e34515f1c3c88eb3de60fab64ca4d2adf6dd74
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants