nus-cs2113-AY2122S1 / pe-dev-response

0 stars 0 forks source link

No filter for quantity above INT_MAX #2944

Open nus-se-bot opened 2 years ago

nus-se-bot commented 2 years ago

As a super rich user, I would like to add billions of billions of food to my fridge. I set the quantity to a very huge quantity from the save file. And this value is read as a string as it is above INT_MAX, and not filtered out properly. Preventing the program from starting all together, as it throws an exception Screenshot 2021-11-12 at 5.04.23 PM.png

Screenshot 2021-11-12 at 5.05.23 PM.png


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

alvynben commented 2 years ago

Team's Response

Thanks for this bug report.

This bug has been accepted (as a duplicate) because it is a valid flaw.

However, I've downgraded the severity to low as most households, whom this product is targeted towards:

Hence, most users are unlikely to face this problem, and it wouldn't hinder normal usage in the slightest. Furthermore, if the user needed to make the value correct, they could change back the value. Hope you can accept this severity.

Duplicate status (if any):

Duplicate of #2816