Skip to content

Integer overflow when wager gets payed out #107

@CdeJong

Description

@CdeJong

When using betting amounts higher than half of the (positive) integer limit, the payout amount will overflow to a negative number.

In this example 1,500,000,000.00 was used as wager:
afbeelding

An easy fix would be changing all integers in the plugin to doubles, as this is what vault is using and they have a much higher maximum value. As an extra precaution, I would add a configurable maximum betting amount.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions