Merge tag 'android-6.0.1_r3' into 601r3
Android 6.0.1 release 3
* tag 'android-6.0.1_r3':
Fix copying of cached map data.
Verify section table name size before strcmp.
Change-Id: I78b3fd868df8b9b9deedf6f9b0569a7b4e1498e2
diff --git a/src/Los-common.c b/src/Los-common.c
index 111caba..fd6ae3f 100644
--- a/src/Los-common.c
+++ b/src/Los-common.c
@@ -66,6 +66,9 @@
/* No need to do any lock, the entire local_map_list is locked
at this point. */
new_list->ei = old_list->ei;
+ /* Adjust the map pointer in the elf image data if necessary. */
+ if (!new_list->ei.mapped)
+ new_list->ei.u.memory.map = new_list;
/* If it was mapped before, make sure to mark it unmapped now. */
old_list->ei.mapped = false;
/* Don't bother breaking out of the loop, the next while check