commit | 4018eb376383a9bbe2aa75a95cc6917ca72aa0b7 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Fri Jan 23 10:57:15 2015 -0800 |
committer | John Reck <jreck@google.com> | Fri Jan 23 11:01:05 2015 -0800 |
tree | bec98fd86e140c4d0658883e8846ed146b7e4589 | |
parent | b74155cf01f959fc9b7909de5a22806ad519f7c9 [diff] |
Prevent memory corruption from use-after-free Bug: 19035637 If an app tries to call recycle() on a Bitmap that has already been finalized it will result in use-after-frees. This is bad. Avoid this by setting the pointer to 0 and checking for this Change-Id: I12d73703a0f95b05fe4c2fd8e9c01b6a3f2f023b