diff options
author | James Zern <jzern@google.com> | 2022-05-27 21:53:49 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-09-12 19:00:47 -0700 |
commit | fd615b4348822f4ba77e3d5731018cf229110b93 (patch) | |
tree | 4864b7dc40cf467fece0d25915a1578bddcb298e /vp9/common | |
parent | a46ca4b6bd8e5f360da74693bb43b400d29d91e8 (diff) | |
download | libvpx-fd615b4348822f4ba77e3d5731018cf229110b93.tar libvpx-fd615b4348822f4ba77e3d5731018cf229110b93.tar.gz libvpx-fd615b4348822f4ba77e3d5731018cf229110b93.tar.bz2 libvpx-fd615b4348822f4ba77e3d5731018cf229110b93.zip |
CHECK_MEM_ERROR: add an assert for a valid jmp target
callers of CHECK_MEM_ERROR() expect failures to not return
tested with:
configure --enable-debug --enable-vp9-postproc --enable-postproc \
--enable-multi-res-encoding --enable-vp9-temporal-denoising \
--enable-error-concealment
--enable-internal-stats has unrelated assertion failures currently
Change-Id: Ic12073b1ae80a6f434f14d24f652e64d30f63eea
Diffstat (limited to 'vp9/common')
-rw-r--r-- | vp9/common/vp9_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/common/vp9_common.h b/vp9/common/vp9_common.h index 3cec53bfd..8d2bed38e 100644 --- a/vp9/common/vp9_common.h +++ b/vp9/common/vp9_common.h @@ -49,6 +49,7 @@ static INLINE int get_unsigned_bits(unsigned int num_values) { #if CONFIG_DEBUG #define CHECK_MEM_ERROR(cm, lval, expr) \ do { \ + assert(&(cm)->error.setjmp); \ (lval) = (expr); \ if (!(lval)) \ vpx_internal_error(&(cm)->error, VPX_CODEC_MEM_ERROR, \ @@ -58,6 +59,7 @@ static INLINE int get_unsigned_bits(unsigned int num_values) { #else #define CHECK_MEM_ERROR(cm, lval, expr) \ do { \ + assert(&(cm)->error.setjmp); \ (lval) = (expr); \ if (!(lval)) \ vpx_internal_error(&(cm)->error, VPX_CODEC_MEM_ERROR, \ |