Commit 8d8ee1f6 authored by James Zern's avatar James Zern Committed by Gerrit Code Review

Merge "vp8_peek_si_internal: quiet static analysis warning"

parents 904cb533 1bf7a0fb
......@@ -9,6 +9,7 @@
*/
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "./vp8_rtcd.h"
......@@ -154,6 +155,8 @@ static vpx_codec_err_t vp8_peek_si_internal(const uint8_t *data,
{
vpx_codec_err_t res = VPX_CODEC_OK;
assert(data != NULL);
if(data + data_sz <= data)
{
res = VPX_CODEC_INVALID_PARAM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment