nasa / osal

The Core Flight System (cFS) Operating System Abstraction Layer (OSAL)
Apache License 2.0
556 stars 217 forks source link

f-sanitizer detect runtime error in coverage-shared-idma #1469

Closed avan989 closed 4 months ago

avan989 commented 4 months ago

Describe the bug Running with f-sanitizer detect run time error:

/home/vboxuser/Desktop/cFS/osal/src/os/shared/src/osapi-idmap.c:600:38: runtime error: index 22 out of bounds for type 'OS_objtype_state_t [16]'

To Reproduce Steps to reproduce the behavior: add_compile_options( -fsanitize=address -fsanitize=undefined -fsanitize-recover=all -g ) add_link_options( -fsanitize=address -fsanitize=undefined -fsanitize-recover=all )

Make SIMULATION=native ENABLE_UNIT_TESTS=true prep

make install

Run Test

Expected behavior A clear and concise description of what you expected to happen.

Code snips If applicable, add references to the software.

System observed on:

Additional context Add any other context about the problem here.

Reporter Info Full name and company/organization if applicable Anh Van, GSFC