Prevent infinite loop in case of integer overflow.

Bug: http://b.android.com/191328
Change-Id: Ibcf3cbaea8a486887066111891fe8a9b84d13268
1 file changed