From 1dd76496664e6e9f0d6d7aa4619a89252ab99b39 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Wed, 6 Apr 2016 08:54:21 -0700 Subject: Add default case for undefined pointer initialization Bug: 28026175 Change-Id: I1b149bf1573296df18abbe44f737bd87ab3913f9 --- libSBRdec/src/env_extr.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libSBRdec/src/env_extr.cpp') 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 */ -- cgit v1.2.3