Skip to content

Conversation

@VictorTrustyDev
Copy link

This PR aims to patch a potential panic where error message constructs using two variables that possible larger than math.MaxInt64 thus causing panic.

2 testcases was added to make sure neither of them, when overflow of int64, would causes panic

@VictorTrustyDev VictorTrustyDev added the enhancement Enhancement / bug-fixes or re-work on old feature label Jan 8, 2024
@VictorTrustyDev VictorTrustyDev self-assigned this Jan 8, 2024
@VictorTrustyDev VictorTrustyDev merged commit d509a88 into main Jan 8, 2024
@VictorTrustyDev VictorTrustyDev deleted the fix/prevent-int64-overflow-in-fee-ante-handle branch January 8, 2024 17:14
@VictorTrustyDev VictorTrustyDev restored the fix/prevent-int64-overflow-in-fee-ante-handle branch January 8, 2024 17:14
@VictorTrustyDev VictorTrustyDev deleted the fix/prevent-int64-overflow-in-fee-ante-handle branch January 8, 2024 17:14
VictorTrustyDev added a commit that referenced this pull request Jan 8, 2024
…-ante-handle-backport-59

fix: prevent panic when building error message of fee which overflow int64 (backport #59)
@VictorTrustyDev VictorTrustyDev changed the title fix: prevent panic when building error message of fee which overflow int64 fix(ante): prevent panic when building error message of fee which overflow int64 Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement / bug-fixes or re-work on old feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants