Skip to content

Fix #195, Stack smashing in CF_Chunk unit test#196

Merged
astrogeco merged 1 commit intonasa:mainfrom
skliper:Fix195-cf_chunck_ut_stacksmash
Feb 16, 2022
Merged

Fix #195, Stack smashing in CF_Chunk unit test#196
astrogeco merged 1 commit intonasa:mainfrom
skliper:Fix195-cf_chunck_ut_stacksmash

Conversation

@skliper
Copy link
Copy Markdown

@skliper skliper commented Feb 10, 2022

Checklist (Please check before submitting)

Describe the contribution

Testing performed
Built/ran 32 bit unit tests

Expected behavior changes
No longer stack smashing in UT

System(s) tested on

  • Hardware: i5/Container
  • OS: Ubuntu 18.04
  • Versions: Bundle main + this commit

Additional context
None

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

@skliper skliper added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Feb 10, 2022
@skliper skliper added this to the Draco milestone Feb 10, 2022
@astrogeco astrogeco added the unit-test Related to coverage or functional tests label Feb 11, 2022

/* Arrange for CF_Chunks_CombineNext to return 0 and CF_Chunks_CombinePrevious to return 0 */
CF_ChunkIdx_t dummy_chunks_count = 10; /* 10 for dummy_chunks_count is arbitrary, chosen for speed */
CF_ChunkIdx_t dummy_chunks_count;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would we get an uninitialized variable warning from static analysis here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because it's set on line 1468 before use.

@astrogeco astrogeco added CCB:Approved and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Feb 16, 2022
@astrogeco
Copy link
Copy Markdown
Contributor

CCB:2022-02-16 APPROVED

@astrogeco astrogeco merged commit e391163 into nasa:main Feb 16, 2022
@skliper skliper deleted the Fix195-cf_chunck_ut_stacksmash branch June 10, 2022 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Approved draco-rc1 unit-test Related to coverage or functional tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CF_Chunk unit test stack smashing

3 participants