Open soc-pe-bot opened 1 year ago
I tried to keep adding transaction to the limit and eventually it became negative. I assume you are using int here thats why when it hit the max value of int, it became negative.
Suggestion: It is good to limit the max transaction count.
Labels: type.FunctionalityBug severity.High original: lyndonlim27/ped#9
type.FunctionalityBug
severity.High
@seriouslia0 your sum needs to check that the total is less than Long.MAX_VALUE
I already changed to long type and limit the increment to take in number less than the max value
I tried to keep adding transaction to the limit and eventually it became negative. I assume you are using int here thats why when it hit the max value of int, it became negative.
Suggestion: It is good to limit the max transaction count.
Labels:
type.FunctionalityBug
severity.High
original: lyndonlim27/ped#9