commit | 63f294aff4f52e9c1cb0148a3d5a1e7035862824 | [log] [tgz] |
---|---|---|
author | Praveen Chavan <pchavan@codeaurora.org> | Mon Mar 21 12:43:42 2016 -0700 |
committer | Dirk Vogt <dirk@fairphone.com> | Tue Mar 28 15:29:05 2017 +0200 |
tree | fd25f08a8defe0fb509f58297b4790562939382f | |
parent | aa15eb20477783efd8152c65e6d53d33b9cb1b28 [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 FPIIM-620 Change-Id: I31e576ef9dc542df73aa6b0ea113d72724b50fc6