summaryrefslogtreecommitdiffstats
path: root/mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
diff options
context:
space:
mode:
authorMahesh Lanka <mlanka@codeaurora.org>2016-10-12 15:08:26 +0530
committerSteadyQuad <SteadyQuad@gmail.com>2016-12-13 22:54:17 +0100
commit1608b66ac343c78cfab67a4cfc2017bec2d41fcd (patch)
treeded2c4e1c5901b8c149ada5a0214d266797e97bd /mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp
parent23cd92cf8c0bd4908ff0b3f64aa108aa28c089f3 (diff)
downloadandroid_hardware_qcom_media-1608b66ac343c78cfab67a4cfc2017bec2d41fcd.tar.gz
android_hardware_qcom_media-1608b66ac343c78cfab67a4cfc2017bec2d41fcd.tar.bz2
android_hardware_qcom_media-1608b66ac343c78cfab67a4cfc2017bec2d41fcd.zip
mm-video-v4l2: vdec: Disallow input usebuffer for secure case
In secure mode, input buffer _must_ be allocated by the component to allocate a secure buffer. Client-supplied memory via usebuffer does not qualify as secure-memory and must be rejected. This also avoids accidental heap-overflow while copying bitstream from user-memory to a smaller-sized secure-payload (usually the buffer-header itself) Bug : 30148882 Fixes : Heap Overflow/LPE in MediaServer (libOmxVdec problem #11) Change-Id: I113c771adccc81869c9e044e395abb918c7f5890 (cherry picked from commit d51985695dd8e3e771559ef503a33bda62b36e52)
Diffstat (limited to 'mm-video-v4l2/vidc/venc/src/omx_video_encoder.cpp')
0 files changed, 0 insertions, 0 deletions