Skip to content

Fix #47, init data passed as const input#77

Merged
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-47-init-input-params
Dec 8, 2021
Merged

Fix #47, init data passed as const input#77
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-47-init-input-params

Conversation

@jphickey
Copy link
Copy Markdown
Contributor

@jphickey jphickey commented Dec 1, 2021

Any data structure passed to a function by pointer where that pointer is documented as input-only (const)
should always be initialized. Some compilers will warn about this (even if the called function does not actively
dereference the pointer due to other constraints).

Fixes #47

Any data structure passed to a function by pointer
where that pointer is documented as input-only (const)
should always be initialized.  Some compilers will warn
about this (even if the called function does not actively
dereference the pointer due to other constraints).
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Dec 1, 2021
@astrogeco astrogeco added CCB:Approved and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Dec 8, 2021
@astrogeco
Copy link
Copy Markdown
Contributor

CCB:2021-12-08 - APPROVED

@astrogeco astrogeco merged commit 3f2b3ae into nasa:main Dec 8, 2021
@jphickey jphickey deleted the fix-47-init-input-params branch December 9, 2021 16:39
@skliper skliper added this to the Draco milestone Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CF test passing uninitialized buffer to input-only parameter

3 participants