commit | 192ee8310b106e4370dbc84727c961002a3ec816 | [log] [tgz] |
---|---|---|
author | Emilian Peev <epeev@google.com> | Wed Jan 31 14:46:47 2018 +0000 |
committer | Emilian Peev <epeev@google.com> | Fri Feb 02 14:05:37 2018 +0000 |
tree | b6719d1d75821cf0ad33eb8ee3bb62c3b4637c9c | |
parent | 7cd0df204b6ab69d56510b53556388527c212ea7 [diff] |
Camera: Avoid 'outputBufferSizes' out-of-bounds access Hal interface stream configuration will iterate over all available streams both input and output. However the 'outputBufferSizes' vector includes only buffer sizes for output streams. If we have an input stream, then an invalid memory access is possible. Resolve this by allocating enough 'outputBufferSizes' entries. Bug: 72736744 Test: Camera CTS Change-Id: I6973f1fbf499628437b7523aab6bf13c88015448