Add integer sanitization to libexif. am: 60e6338332 am: cb8825c1ce am: 745c27bfad
am: 5a09fe4561

Change-Id: Ie2e5c4164174089e1247e8edd4d6ffb0ecdac12b
diff --git a/Android.bp b/Android.bp
index f648a4b..62ba943 100644
--- a/Android.bp
+++ b/Android.bp
@@ -64,6 +64,10 @@
         "-Werror",
     ],
 
+    sanitize: {
+        integer_overflow: true,
+        blacklist: "libexif_blacklist.txt",
+    },
 }
 
 // WARNING: this makefile builds a shared library. Do not ever make it build
diff --git a/libexif_blacklist.txt b/libexif_blacklist.txt
new file mode 100644
index 0000000..9500d9a
--- /dev/null
+++ b/libexif_blacklist.txt
@@ -0,0 +1,15 @@
+# Copyright (C) 2017 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+fun:match_tag