Integer overflow

A small vulnerability called integer overflow had caused a lot of problem .

Before seeing that Problems let me tell u what is integer overflow in C language int is by default signed 32 bit integer which means it can hold only value in range +2147483647 to -2147483648 if u store more than this compiler would wrap-around i.e it again starts counting from min value that’s all about integer overflow , let’s see the problem caused by it

1) Year 2038 problem( Unix Millennium Bug) :

Most of Unix like operating system stores time_t in a 32 bit integer so at Tuesday, 19 January 2038 all 32-bit system will start showing negative numbers

2) Pay pal error :

An error in the PayPal payment system in July 2013 accidentally credited $92 quadrillion to the account of Chris Reynolds. (The exact amount credited was US$92,233,720,368,547,940.25 to a final balance of US$92,233,720,368,547,800.00.) PayPal corrected the error, and offered to make a donation to a charity of Reynolds’ choice.

3) Youtube breakdown :

“We never thought a video would be watched in numbers greater than a 32-bit integer (=2,147,483,647 views), but that was before we met PSY,” wrote Google, which owns YouTube, in a blog post this week. " ‘Gangnam Style’ has been viewed so many times we have to upgrade!