Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address Sanitizer issue for hs_monitors_tests.c #129

Closed
2 tasks done
avan989 opened this issue Jun 27, 2024 · 0 comments · Fixed by #130
Closed
2 tasks done

Address Sanitizer issue for hs_monitors_tests.c #129

avan989 opened this issue Jun 27, 2024 · 0 comments · Fixed by #130

Comments

@avan989
Copy link

avan989 commented Jun 27, 2024

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
A clear and concise description of what the bug is.

Running with address sanitizer trigger an runtime error:

/home/vboxuser/Desktop/cFS/apps/hs/fsw/src/hs_monitors.c:419:38: runtime error: index 64 out of bounds for type 'uint32 [64]'

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:

  • Hardware
  • OS: [e.g. Linux 4.4]
  • Versions [e.g. cFE 6.6, OSAL 4.2, PSP 1.3 for mcp750, any related apps]

Additional context
Add any other context about the problem here.

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

dzbaker added a commit that referenced this issue Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant