This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4AL-Q1: Misaligned memory access in vxCopyImagePatch

Part Number: TDA4AL-Q1

Hello Support-Team,

I ran the TIOVX conformance test suite on our PikeOS port at SYSGO, based on PSDK RTOS 08_05_00_11.

The test tivxPackedDataFormat.CreateUniformImage/0/TIVX_DF_IMAGE_P12 crashed because of an unaligned memory access.

I did some investigation and found a suspicious line of code at vx_image.c:1825.
There the 8-Bit pointer pUserElem is incremented by 3, which subsequently caused the unaligned access exception.
I suspect that instead of pUserElem the 32-Bit pointer pUserElem32 should have been incremented.

When I change that the test passes for me, but I wanted to point you to the issue and ask you if you can confirm if the fix is correct.

Kind regards

Marco Kosinski
SYSGO Software Architect Automotive

BTW: I tried to attach the patch for the fix, but I am not sure if it worked.
The site did not give me any feedback on that.