SWEN-331: Engineering Secure Software Benjamin S Meyers
VOTD: Integer Overflow
Engineering Secure Software
Last Revised: August 17, 2020 1
VOTD: Integer Overflow Engineering Secure Software Last Revised: - - PowerPoint PPT Presentation
VOTD: Integer Overflow Engineering Secure Software Last Revised: August 17, 2020 SWEN-331: Engineering Secure Software Benjamin S Meyers 1 What is Integer Overflow? An operation that creates a numeric value outside of the range that can
SWEN-331: Engineering Secure Software Benjamin S Meyers
Last Revised: August 17, 2020 1
SWEN-331: Engineering Secure Software Benjamin S Meyers
2
SWEN-331: Engineering Secure Software Benjamin S Meyers
3
bank.balance = 0; bank.deposit(Integer.MAX_VALUE); // bank.balance is now 2147483647 bank.deposit(1); // bank.balance is now -2147483648 patient.id = 4294967314L; patient.id = (int) patient.id; // patient.id is now 18
SWEN-331: Engineering Secure Software Benjamin S Meyers
4
SWEN-331: Engineering Secure Software Benjamin S Meyers
5
SWEN-331: Engineering Secure Software Benjamin S Meyers 6
Source: https://xkcd.com/571/