commit | 89913d7df36dbeb458ce165856bd6505a2ec647d | [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 19:11:20 2016 -0700 |
tree | e382779616cd3781d15299250298da192b22cb21 | |
parent | 46e305be6e670a5a0041b0b4861122a0f1aabefa [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