ExifInterface: fix a bug in readExifEntryValue

The readExifEntry method has raised an unnessary EOFException on reading
an non-ASCII byte array.

Bug: 27484747
Change-Id: I19371e0eed25770929f50b3ca25f249c50113925
This commit is contained in:
Jaesung Chung
2016-03-08 22:09:21 +09:00
parent bd1dc40a3b
commit ad76dc2e62
5 changed files with 40 additions and 5 deletions

View File

@@ -1560,8 +1560,6 @@ public class ExifInterface {
StringBuilder stringBuilder = new StringBuilder();
while (true) {
int ch = bytes[index];
if (ch < 0)
throw new EOFException();
if (ch == 0)
break;
if (ch >= 32)