commit | b9b0c078268867adedb549d6a291126457f43af9 | [log] [tgz] |
---|---|---|
author | Praveen Chavan <pchavan@codeaurora.org> | Mon Apr 11 17:32:55 2016 -0700 |
committer | The Android Automerger <android-build@google.com> | Thu Apr 21 20:08:32 2016 -0700 |
tree | e382779616cd3781d15299250298da192b22cb21 | |
parent | 567be8341b68246a736a3ca43257c2186e9f08bb [diff] |
DO NOT MERGE mm-video-v4l2: venc: add safety checks for freeing buffers Allow only up to 64 buffers on input/output port (since the allocation bitmap is only 64-wide). Add safety checks to free only as many buffers were allocated. Fixes: Heap Overflow and Possible Local Privilege Escalation in MediaServer (libOmxVenc problem) Bug: 27532497 Change-Id: I31e576ef9dc542df73aa6b0ea113d72724b50fc6