summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaurabh Bipin Chandra <a0131926@ti.com>2011-11-11 14:41:45 +0530
committerSaurabh Bipin Chandra <a0131926@ti.com>2011-11-11 16:53:06 +0530
commit465304089ddcb707509d498e0b321ad206c19308 (patch)
treebd2ee7855f5793db1df8cf7348a7331ee518df28
parentc0f251b33e3fd821017ec4f4030356ed5571f800 (diff)
downloadhardware_ti_omap4-465304089ddcb707509d498e0b321ad206c19308.zip
hardware_ti_omap4-465304089ddcb707509d498e0b321ad206c19308.tar.gz
hardware_ti_omap4-465304089ddcb707509d498e0b321ad206c19308.tar.bz2
[DOMX] Check for NULL buffer address for UseBuffer
Adding a check for NULL buffer address in PROXY_UseBuffer() and returning appropriate error on failing. Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com>
-rw-r--r--domx/omx_proxy_common/src/omx_proxy_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c
index 446a864..c445b39 100644
--- a/domx/omx_proxy_common/src/omx_proxy_common.c
+++ b/domx/omx_proxy_common/src/omx_proxy_common.c
@@ -966,6 +966,7 @@ static OMX_ERRORTYPE PROXY_UseBuffer(OMX_IN OMX_HANDLETYPE hComponent,
PROXY_require((hComp->pComponentPrivate != NULL),
OMX_ErrorBadParameter, NULL);
+ PROXY_require(pBuffer != NULL, OMX_ErrorBadParameter, "Pointer to buffer is NULL");
PROXY_require(ppBufferHdr != NULL, OMX_ErrorBadParameter,
"Pointer to buffer header is NULL");