Resolve "UBSAN: member access within null pointer of type 'struct ivas_spar_dec_lib_t' in MASA decoder setup"
requested to merge 613-ubsan-member-access-within-null-pointer-of-type-struct-ivas_spar_dec_lib_t-in-masa-decoder-setup into main
Related to #613 (closed)
In ivas_dirac_config()
move accessing hSpar->dirac_to_spar_md_bands
under a guardian checking that hSpar
is non-NULL. The issue #613 (closed) was reported only for decoder, but the same potential risk exists for encoder and the same fix is applied there.