Skip to content

malloc insufficient size in ivas_mct_dec_fx

Basic info

  • Float reference:
    • Encoder (float):
    • Decoder (float):
  • Fixed point:
    • Encoder (fixed): d3508f9d
    • Decoder (fixed):

Bug description

When the code is compile with make -j CLANG=1, we get the following warning /:

lib_dec/ivas_mct_dec_fx.c:702:88: warning: allocation of insufficient size '488' for type 'struct stereo_mdct_dec_data_structure' with size '768' [-Walloc-size] 702 | IF( ( hMCT->hBlockData[n]->hStereoMdct = (STEREO_MDCT_DEC_DATA_HANDLE) malloc( sizeof( STEREO_MDCT_ENC_DATA ) ) ) == NULL )

Ways to reproduce

Box folder: ...\Box_EXTERNAL_IVAS_BASOP_VERIFICATION\issues\issue-xxxx

make clean
make -j CLANG=1