OSDN Git Service

Use canonical paths when searching for dex files
authorCalin Juravle <calin@google.com>
Tue, 15 Jul 2014 22:56:47 +0000 (23:56 +0100)
committerCalin Juravle <calin@google.com>
Mon, 4 Aug 2014 17:24:29 +0000 (18:24 +0100)
commit66d1caf42c20efba8305efb3a819993126e8abbf
treebb23104eafff5bf994696d2ffe78513846ee01d1
parent07206af370746e6d7cf528e655b4854e7a865cfa
Use canonical paths when searching for dex files

Apps which use the DexPathClassLoader directly may
pass symlinks when trying to load dex files. This
will not work as we use string comparision to find
the dex in an oat file. The CL fixes this issue by
using using dex conical paths for comparisons.

Bug: 15313272

(cherry picked from commit 4e1d579d6401fef2dd57b16f8d406e33221a69d9)

Change-Id: I441f1ef18388c4a17c747a7e55b57f917724db85
runtime/class_linker.cc
runtime/dex_file.cc
runtime/dex_file.h
runtime/dex_file_test.cc
runtime/oat_file.cc