SeanHoWB / pe

0 stars 0 forks source link

NEgative quantity #9

Open SeanHoWB opened 2 years ago

SeanHoWB commented 2 years ago

image.png

After the integer overflow to negative, when exiting and running the program again, a negative quantity is loaded into the program

soc-pe-bot commented 2 years ago

Team's Response

Thank you for your response. This problem is because of integer overflow.

The 'Original' Bug

[The team marked this bug as a duplicate of the following bug]

Integer Overflow

image.png

When adding the quantity beyond the limit of an integer, the program does not show the warehouse item.

image.png

furthermore any further adding of quantity does not show in the terminal

image.png

JSON file for proof of integer overflow


[original: nus-cs2113-AY2122S2/pe-interim#990] [original labels: type.FunctionalityBug severity.High]

Their Response to the 'Original' Bug

[This is the team's response to the above 'original' bug]

Hi thanks for the feedback, we agree that this is an issue, however these values are much larger than reasonably expected for the warehouse to hold.

image.png

According to the module website this is considered as extreme user behaviour which should be rejected.

Items for the Tester to Verify

:question: Issue duplicate status

Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)

Reason for disagreement: [replace this with your explanation]


:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: [replace this with your explanation]


:question: Issue type

Team chose [type.FunctionalityBug] Originally [type.FeatureFlaw]

Reason for disagreement: [replace this with your explanation]


:question: Issue severity

Team chose [severity.Low] Originally [severity.Medium]

Reason for disagreement: [replace this with your explanation]