OSDN Git Service

IOMX: work against metadata buffer spoofing
authorLajos Molnar <lajos@google.com>
Tue, 2 Aug 2016 14:07:05 +0000 (07:07 -0700)
committerLajos Molnar <lajos@google.com>
Wed, 3 Aug 2016 14:39:52 +0000 (14:39 +0000)
commitf8a4cb410115045278f534e54b41ac78d6bf6c07
tree277909e121cf816d871fc1203b58f87413f83be0
parent7ab70a7ba9ff522d45763af48d15aac805738d9c
IOMX: work against metadata buffer spoofing

- Prohibit direct set/getParam/Settings for extensions meant for
  OMXNodeInstance alone. This disallows enabling metadata mode
  without the knowledge of OMXNodeInstance.
- Do not share metadata mode buffers cross process.
- Disallow setting up metadata mode/tunneling/input surface
  after first sendCommand.
- Disallow store-meta for input cross process.
- Disallow emptyBuffer for surface input (via IOMX).
- Fix checking for input surface.

Bug: 29422020
Change-Id: I801c77b80e703903f62e42d76fd2e76a34e4bc8e
include/media/IOMX.h
media/libmedia/IOMX.cpp
media/libstagefright/OMXClient.cpp
media/libstagefright/include/OMX.h
media/libstagefright/include/OMXNodeInstance.h
media/libstagefright/omx/OMX.cpp
media/libstagefright/omx/OMXNodeInstance.cpp