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

Initialize CDS block data in es unit testing to avoid uninit var warnings from valgrind #2028

Closed
skliper opened this issue Jan 18, 2022 · 0 comments · Fixed by #2029 or #2019
Closed
Assignees
Milestone

Comments

@skliper
Copy link
Contributor

skliper commented Jan 18, 2022

Is your feature request related to a problem? Please describe.
Block data is used uninitialized in unit test:

uint8 BlockData[ES_UT_CDS_BLOCK_SIZE];

CFE_UtAssert_SUCCESS(CFE_ES_CopyToCDS(CDSHandle, &BlockData));

CFE_UtAssert_SUCCESS(CFE_ES_RestoreFromCDS(&BlockData, CDSHandle));

Describe the solution you'd like
Initialize.

Describe alternatives you've considered
None

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC

@skliper skliper added this to the Draco milestone Jan 18, 2022
@skliper skliper self-assigned this Jan 18, 2022
skliper added a commit to skliper/cFE that referenced this issue Jan 18, 2022
astrogeco added a commit that referenced this issue Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant