commit | d761fb819c11fe6932817bfb6375966f00ec1314 | [log] [tgz] |
---|---|---|
author | Praveen Chavan <pchavan@codeaurora.org> | Mon Mar 21 12:43:42 2016 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon May 02 21:59:49 2016 -0700 |
tree | 590888029e6d529684e8e7fec5817216fe50e73c | |
parent | d06c29b057a843e752332981c7f122eb55d43bd9 [diff] |
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