nasa / cFE

The Core Flight System (cFS) Core Flight Executive (cFE)
Apache License 2.0
402 stars 198 forks source link

Address Sanitizer in coverage-es-ALL (TestApps) #2569

Open avan989 opened 3 weeks ago

avan989 commented 3 weeks ago

Describe the bug Running with Address Sanitizer shows a runtime error in TestApps of coverage-es-ALL:

[BEGIN] 04 TestApps
[ INFO] es_UT.c:1150:Begin Test Apps
/home/vboxuser/Desktop/cert_testbed/cfe/modules/es/fsw/src/cfe_es_apps.c:215:65: runtime error: index 130 out of bounds for type 'char [128]'

To Reproduce Steps to reproduce the behavior:

  1. Include the following options: add_compile_options( -fsanitize=address -fsanitize=undefined -fsanitize-recover=all -g ) add_link_options( -fsanitize=address -fsanitize=undefined -fsanitize-recover=all )

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