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)

CRs-Fixed: 1071731
Change-Id: Ibbde2d6a9c1f30e8482a533cadb13e44d8dcb2c0
(cherry picked from commit 2495a6921d14854debc2a7fc1639141eb71d5c21)
2 files changed
tree: b842976fa8908d8832742f9b184316f18b74354f
  1. msm8974/
  2. msm8996/
  3. Android.mk
  4. CleanSpec.mk