Skip to content

Conversation

@Franziska-Mueller
Copy link
Collaborator

@Franziska-Mueller Franziska-Mueller commented Sep 15, 2025

relevant overflows can happen in:

  • SendToManyV1: sum of the amounts plus fee which is checked to be equal to the invocationReward. if this sum overflows and in the end passes the equality check, more QUs will be transfered out that are received via the invocationReward.
  • SendToManyBenchmark: the product input.dstCount * input.numTransfersEach may overflow and still pass the contract action checker size check

add safe addition (analogous to safe multiplication) to QPI

@Franziska-Mueller Franziska-Mueller marked this pull request as ready for review September 15, 2025 17:15
@Franziska-Mueller Franziska-Mueller merged commit 98cbd37 into develop Sep 16, 2025
2 checks passed
@Franziska-Mueller Franziska-Mueller moved this to ✅ Done in qubic Sep 19, 2025
@Franziska-Mueller Franziska-Mueller self-assigned this Sep 19, 2025
@Franziska-Mueller Franziska-Mueller deleted the bugfix/2025-09-15-qutil-overflow branch September 19, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants