diff options
| author | Emilian Peev <epeev@google.com> | 2019-06-27 13:02:26 -0700 |
|---|---|---|
| committer | Emilian Peev <epeev@google.com> | 2019-06-28 17:03:12 +0000 |
| commit | fd4ce7e76a20b40c428293291fcb0e4488c122c8 (patch) | |
| tree | 749fa9a90e42adad04e02804e6e8af957f2c3a23 /identity/support/src/cppbor_parse.cpp | |
| parent | 33723f56b531312ea1476f138e6f1e7d3a8a6d6f (diff) | |
Camera: VTS: Don't access invalid resources
There is no guarantee that the static metadata
pointer passed in the "DeviceCb" contructor will
be valid after the call completes. The device
callback instance is expected to be active until
the camera session is open. Clone the required
metadata in "DeviceCb" and manage the lifetime
appropriately by using the "CameraMetadata"
wrapper.
Bug: 135976837
Test: CameraHidlTest#processCaptureRequestPreview
Change-Id: Idd3c6c8c2e5a3fc44a49712e25a04009cbd471b1
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions
