Skip to content

ASN_SEQUENCE_ADD return code was checked only in 0.5% of calls

Thomas Laurent requested to merge fix-check-return-ASN_SEQUENCE_ADD into develop

ASN_SEQUENCE_ADD return code was checked only in 0.5% of calls, existing errors not detected by sanitize address

example found: config_pdsch() => pdsch_Config->tci_StatesToAddModList=calloc(...) is missing
So, the call to ASN1_SEQUENCE_ADD returns -1 but we miss it
Weird: as pdsch_Config->tci_StatesToAddModList is NULL the call using dsch_Config->tci_StatesToAddModList->list should perform SEGV
but it doesn't (even with --sanitize-address)

Merge request reports

Loading