diff options
author | Saurabh Bipin Chandra <a0131926@ti.com> | 2011-11-11 14:41:45 +0530 |
---|---|---|
committer | Saurabh Bipin Chandra <a0131926@ti.com> | 2011-11-11 16:53:06 +0530 |
commit | 465304089ddcb707509d498e0b321ad206c19308 (patch) | |
tree | bd2ee7855f5793db1df8cf7348a7331ee518df28 | |
parent | c0f251b33e3fd821017ec4f4030356ed5571f800 (diff) | |
download | hardware_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.c | 1 |
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"); |