Lines Matching defs:overflow
11 // https://www.securecoding.cert.org/confluence/display/c/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow
36 ThrowProgramError("Arithmetic overflow");
49 ThrowProgramError("Arithmetic overflow");
105 ThrowProgramError("Arithmetic overflow");
115 ThrowProgramError("Arithmetic overflow");
171 ThrowProgramError("Arithmetic overflow");
183 bool overflow = true;
187 overflow = (arg1 > std::numeric_limits<std::int64_t>::max() / arg2);
189 overflow = (arg2 < std::numeric_limits<std::int64_t>::min() / arg1);
193 overflow = (arg1 < std::numeric_limits<std::int64_t>::min() / arg2);
195 overflow = (arg1 != 0 &&
200 if (overflow) {
201 ThrowProgramError("Arithmetic overflow");
269 ThrowProgramError("Arithmetic overflow");