From 0309455012f1a39cb37ecfd1c10052118c22b27e Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Thu, 7 Mar 2019 13:15:15 -0800 Subject: libMpegTPDec: fix use of uninitialized value in OutOfBandConfig Initialize tmpConf in transportDec_OutOfBandConfig Bug: 120426166 Test: see bug Change-Id: I72ac8bc96a7d386ffe32acd669c78c4a581d52dc --- libMpegTPDec/src/tpdec_lib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libMpegTPDec/src') diff --git a/libMpegTPDec/src/tpdec_lib.cpp b/libMpegTPDec/src/tpdec_lib.cpp index 1976cb9..506aed3 100644 --- a/libMpegTPDec/src/tpdec_lib.cpp +++ b/libMpegTPDec/src/tpdec_lib.cpp @@ -274,7 +274,7 @@ TRANSPORTDEC_ERROR transportDec_OutOfBandConfig(HANDLE_TRANSPORTDEC hTp, UCHAR configChanged = 0; UCHAR configMode = AC_CM_DET_CFG_CHANGE; - UCHAR tmpConf[1024]; + UCHAR tmpConf[1024] = {0}; if (length > 1024) { return TRANSPORTDEC_UNSUPPORTED_FORMAT; } -- cgit v1.2.3