Prevent infinite loops when parsing files

Bug: 23540914
Change-Id: I5d7c63cbb697c99cc3746e3c96f7c1f720896eba
1 file changed