libexif: Avoid buffer overflow due to compiler optimization

Modify an arguments size check and decrease so that the
likelihood of the compiler removing it as part of
optimizations is low.
The arguments check must always be triggered to avoid
potential buffer overflows.

Bug: 159625731
Test: run sts-engbuild-no-spl-lock -m StsHostTestCases --test
android.security.sts.Poc20_08#testPocBug_159625731

Change-Id: I6f1b24a699c307b59e51dc0e22f4ed21f4b99feb
Merged-In: I6f1b24a699c307b59e51dc0e22f4ed21f4b99feb
diff --git a/Android.bp b/Android.bp
index 308bcb2..57794c1 100644
--- a/Android.bp
+++ b/Android.bp
@@ -46,6 +46,10 @@
         "libexif/pentax/mnote-pentax-tag.c",
     ],
 
+    shared_libs: [
+        "liblog",
+    ],
+
     export_include_dirs: ["."],
 
     cflags: [