Fix OOB read due to integer overflow This only happens on 32bit system. Bug: 70808908 Test: minikin_tests Change-Id: Id394e0ccf83bddd2db9957386dc3ed892feae8a5 (cherry picked from commit 2f88f76f257d046066ede752156968aff712114b)