ref: 1bf7a0fb29c8af93a9d65f8082bab03cdb22d53d
parent: 79dc6c03932079d0067e1b4056feae361818ff49
author: James Zern <[email protected]>
date: Fri Mar 25 05:57:53 EDT 2016
vp8_peek_si_internal: quiet static analysis warning the vpx_decoder layer guarantees that when called directly this won't receive NULL data and the reuse via decode() is protected by a NULL data check and 0 size check (NULL data and non-zero data size is protected by the vpx_decoder layer). Change-Id: I7437fb5ca4e4aa431963d55b909d4d920f339be3
--- a/vp8/vp8_dx_iface.c
+++ b/vp8/vp8_dx_iface.c
@@ -9,6 +9,7 @@
*/
+#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "./vp8_rtcd.h"
@@ -153,6 +154,8 @@
void *decrypt_state)
{
vpx_codec_err_t res = VPX_CODEC_OK;
+
+ assert(data != NULL);
if(data + data_sz <= data)
{