Fix stack memory corruption 42/229042/1
authorJeongmo Yang <jm80.yang@samsung.com>
Fri, 27 Mar 2020 08:04:41 +0000 (17:04 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 27 Mar 2020 08:23:08 +0000 (17:23 +0900)
commita14f92f0c432686bbe3c2a48ff4e87ff9e445948
tree271aeca73118e6946976ce46eb401727ac48e084
parentddc36f6795e6f2f6511ea0789e371301bb60b540
Fix stack memory corruption

- The requested buffer count could be bigger than MAX_INPUT_BUFFER(16),
  but, there is no error handling and it caused stack memory corruption.
- Remove static memory declaration and use dynamic allocation with requested buffer count.

[Version] 1.16.2-2
[Profile] Common
[Issue Type] Bug fix

Change-Id: I6048881c8839661133e094079243b3e79f1cbda3
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
omx/gstomx.c
omx/gstomx.h
packaging/gst-omx.spec