Multiple choice technology security

What is the possible vulnerability in this code? unsigned int total, userinput1, userinput2; userinput1 = receiveInput(); userinput2 = receiveInput(); total = userinput1 + userinput2;

  1. Integer overflow

  2. Buffer overflow

  3. Stack overflow

  4. Data type mismatch

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Adding two unsigned integers can cause integer overflow if the sum exceeds the maximum value of the unsigned int type. The result will wrap around modulo 2^32 (on 32-bit systems), producing an incorrect total. This is a classic integer overflow vulnerability in C.