release-request-b1bd0f0e-f3c4-414e-8f22-d9235831ae23-for-git_oc-mr1-release-4099045 snap-temp-L41300000074003051

Change-Id: I1876a90976793add5bbe0dca620aebd4301b7733
diff --git a/src/x86/Ginit.c b/src/x86/Ginit.c
index 4863c15..6748b55 100644
--- a/src/x86/Ginit.c
+++ b/src/x86/Ginit.c
@@ -162,10 +162,13 @@
     }
   else
     {
-      /* validate address */
-      const struct cursor *c = (const struct cursor *)arg;
-      if (c && c->validate && validate_mem(addr))
+      /* ANDROID support update. */
+#ifdef CONSERVATIVE_CHECKS
+      if (validate_mem(addr))
         return -1;
+#endif
+      /* End of ANDROID update. */
+
       /* ANDROID support update. */
 #ifdef UNW_LOCAL_ONLY
       if (map_local_is_readable (addr, sizeof(unw_word_t)))
diff --git a/src/x86_64/Ginit.c b/src/x86_64/Ginit.c
index 672b667..60d973b 100644
--- a/src/x86_64/Ginit.c
+++ b/src/x86_64/Ginit.c
@@ -179,11 +179,12 @@
     }
   else
     {
-      /* validate address */
-      const struct cursor *c = (const struct cursor *)arg;
-      if (likely (c != NULL) && unlikely (c->validate)
-          && unlikely (validate_mem (addr)))
+      /* ANDROID support update. */
+#ifdef CONSERVATIVE_CHECKS
+      if (unlikely (validate_mem (addr)))
         return -1;
+#endif
+      /* End of ANDROID update. */
 
       /* ANDROID support update. */
 #ifdef UNW_LOCAL_ONLY