aboutsummaryrefslogtreecommitdiffstats
path: root/libSBRdec/src
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2016-04-06 08:54:21 -0700
committerGlenn Kasten <gkasten@google.com>2016-04-18 16:11:16 -0700
commit1dd76496664e6e9f0d6d7aa4619a89252ab99b39 (patch)
tree1b0edd10c191f165d9b4bd131d70604f82655c7b /libSBRdec/src
parent4bd4510b19f6bdf21bfdc7350e9d3eab2db9c6b8 (diff)
downloadfdk-aac-1dd76496664e6e9f0d6d7aa4619a89252ab99b39.tar.gz
fdk-aac-1dd76496664e6e9f0d6d7aa4619a89252ab99b39.tar.bz2
fdk-aac-1dd76496664e6e9f0d6d7aa4619a89252ab99b39.zip
Add default case for undefined pointer initialization
Bug: 28026175 Change-Id: I1b149bf1573296df18abbe44f737bd87ab3913f9
Diffstat (limited to 'libSBRdec/src')
-rw-r--r--libSBRdec/src/env_extr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libSBRdec/src/env_extr.cpp b/libSBRdec/src/env_extr.cpp
index 6cb0b99..bdb29e5 100644
--- a/libSBRdec/src/env_extr.cpp
+++ b/libSBRdec/src/env_extr.cpp
@@ -904,6 +904,9 @@ static const FRAME_INFO v_frame_info4_8 = { 0, 4, {0, 2, 4, 6, 8}, {1, 1, 1, 1},
break;
default:
FDK_ASSERT(0);
+ /* in case assertion checks are disabled, force a definite memory fault at first access */
+ pTable = NULL;
+ break;
}
/* look number of envelopes in table */