commit | eb19e766322fb57ccde989e0e35b0ac3e28a4ac2 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Thu May 14 15:39:52 2015 -0700 |
committer | Christopher Ferris <cferris@google.com> | Fri May 15 11:32:53 2015 -0700 |
tree | 3ccf3f82433f790005edd036bdaa710be90d7702 | |
parent | c89a1774cb483f90f58cb8912e89e58f53dbb6a5 [diff] |
Prevent crashes if a map cannot be created. Under some conditions, /proc/<pid>/maps might return nothing. If we try and unwind in this case, we'll crash. Check this case and fail the unwind. Add checks that no other functions try and use map_ without checking for nullptr. Add logging when an unwind fails so it's clear what happened. Bug: 21162746 Change-Id: I56ce51dda0cfc9db20475a441f118108196aa07c (cherry picked from commit 30c942cf1024bf791c28ab9b67a1f752de72248c)