commit | e779e08977ff0be086cae86c8d05e55805a967a4 | [log] [tgz] |
---|---|---|
author | Ray Essick <essick@google.com> | Mon Jun 19 10:40:56 2017 -0700 |
committer | Ray Essick <essick@google.com> | Mon Jun 19 11:36:15 2017 -0700 |
tree | 7eee5db8214afe8814fcf2fc02b58b2ab3f571a3 | |
parent | 9d31e5005554f9086c4654c585a19406e3f594c2 [diff] |
DO NOT MERGE Check frame handle validity before freeing buffer. in CameraSource::releaseRecordingFrame(), validate the VideoNativeHandleMetadata field when received. Avoid releasing invalid handles (and thus invalid memory) if this has been corrupted in user space. Bug: 37662122 Test: poc before/after on nyc-mr2 Change-Id: If48c050a5c20552604a90f19130ad5837e80bf52