OSDN Git Service

DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change
authorSungsoo <sungsoo@google.com>
Thu, 8 Sep 2016 07:04:44 +0000 (16:04 +0900)
committerSungsoo Lim <sungsoo@google.com>
Thu, 8 Sep 2016 07:11:04 +0000 (07:11 +0000)
commit659275dc30f6f5eaf243eec065d0a3e1fe29f166
treed05ef8df0c71459cd27909266162bba7ce0821ee
parentf7b9f84f87a41149c5aa302bfc9ecdd4777fd394
DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change

ExifInterface object can be created with a unsupported file format.
If saveAttribute is called with an unsupported file format, ExifInterface
makes the file corrupted. This CL prevents those cases by throwing
an exception before making any change on the file.

Bug: 30936376
Change-Id: I915f56b00ec9422b53591ac5534e070a1d6798e6
media/java/android/media/ExifInterface.java