Integrate integer overflow changes from security branch

Replace the limits from stdint.h by the limit from
std::numeric_limits<>.

Bug: 26535130
Change-Id: If75ff4f1071db7c2e81bfd1ab59cbeed0d290f71
4 files changed