aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2019-03-07 13:15:15 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2019-03-07 13:15:15 -0800
commit0309455012f1a39cb37ecfd1c10052118c22b27e (patch)
treef88f30d08d92570d52b831b28d1abe95971efbad
parent3e8d8ba558798b1052aec831294aa86ca476bec3 (diff)
downloadfdk-aac-0309455012f1a39cb37ecfd1c10052118c22b27e.tar.gz
fdk-aac-0309455012f1a39cb37ecfd1c10052118c22b27e.tar.bz2
fdk-aac-0309455012f1a39cb37ecfd1c10052118c22b27e.zip
libMpegTPDec: fix use of uninitialized value in OutOfBandConfig
Initialize tmpConf in transportDec_OutOfBandConfig Bug: 120426166 Test: see bug Change-Id: I72ac8bc96a7d386ffe32acd669c78c4a581d52dc
-rw-r--r--libMpegTPDec/src/tpdec_lib.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}