commit | 45e2e95c2ffeb2d978e2cce80b729ef6ada3b8d2 | [log] [tgz] |
---|---|---|
author | Fyodor Kupolov <fkupolov@google.com> | Mon Feb 13 18:35:12 2017 -0800 |
committer | Fyodor Kupolov <fkupolov@google.com> | Thu Feb 16 09:50:00 2017 -0800 |
tree | 992c98155bec887d70df51eb7b90a35a1fe564a9 | |
parent | 3d52f79be4dba94f046709fabc1bfb911a670709 [diff] |
Check bounds in offsetToPtr Check whether specified offset belongs to mData. Also added a default argument bufferSize to check the end offset. Size of the ashmem descriptor can be modified between ashmem_get_size_region call and mmap. createFromParcel method was updated to check ashmem size again immediately after memory is mapped. Test: manual - using the test app from the bug Bug: 34128677 Change-Id: I3ecd1616a870ce20941ce9b20a1843d2b4295750