Resolve "UBSAN: offset to null pointer proto_diffuse_buffer_f in dirac rendering"
requested to merge 632-ubsan-offset-to-null-pointer-proto_diffuse_buffer_f-in-dirac-rendering into main
- Related issues: #632 (closed)
- Requested reviewers: @kiene
- Link to manual test: https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/jobs/152929
Reason why this change is needed
Fixes UBSAN error in SBA decoding/rendering.
Description of the change
Add safeguards so that undefined behaviour is prevented,
Affected operating points
Code changes only in SBA part. Does not change bitstream or output (at least in the tests, in theory undefined behaviour can do anything).
Produced bitstream is BE compared to previous state.
Edited by Jan Kiene