FPII-1974: DO NOT MERGE mm-video-v4l2: vidc: validate omx param/config data

DO NOT MERGE mm-video-v4l2: vidc: validate omx param/config data

Check the sanity of config/param strcuture objects
passed to get/set _ config()/parameter() methods.

Security Vulnerability in MediaServer
omx_vdec::get_config() Can lead to arbitrary write

Bug: 27533317

Change-Id: I6c3243afe12055ab94f1a1ecf758c10e88231809
(cherry picked from commit 04a654d35a988324bcd4c5d6a394e355734d0482)
5 files changed