From d405bfb6fdeac41112482bcce793ee4efa8d5d51 Mon Sep 17 00:00:00 2001 From: David Fuhrmann Date: Sat, 5 Dec 2015 16:16:19 +0100 Subject: [PATCH] h264_nal: fix memory corruption in parse_sps --- modules/packetizer/h264_nal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c index fee3f960ee..d5b04ae846 100644 --- a/modules/packetizer/h264_nal.c +++ b/modules/packetizer/h264_nal.c @@ -417,7 +417,7 @@ int h264_parse_sps( const uint8_t *p_sps_buf, int i_sps_size, struct nal_sps *p_sps ) { uint8_t *pb_dec = NULL; - int i_dec = 0; + size_t i_dec = 0; bs_t s; int i_tmp; -- GitLab