commit | 2622da40d1a9208f7b99d54f0ee8c53fe66c787a | [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 21:00:31 2016 -0700 |
tree | bb50e9ebcdb56a8c4b21778e4ea7cae8f5921781 | |
parent | 1a0ecf28b97b243f1f83e1a5ca16f1c59de39f20 [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