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

Fix #390, Update size variables to size_t and CF_ChunkSize_t typedefs #391

Merged

Conversation

thnkslprpt
Copy link
Contributor

Checklist

Describe the contribution

Testing performed
GitHub CI actions all passing successfully (incl. Build + Run, Unit/Functional Tests etc.).

Expected behavior changes
No change to behavior.

Contributor Info
Avi Weiss @thnkslprpt

@thnkslprpt thnkslprpt force-pushed the fix-390-update-size-variables-to-typedefs branch from 95ac14c to beaf93b Compare June 15, 2023 08:17
fsw/src/cf_crc.c Fixed Show fixed Hide fixed
@thnkslprpt thnkslprpt force-pushed the fix-390-update-size-variables-to-typedefs branch from beaf93b to 4068927 Compare June 15, 2023 08:23
fsw/src/cf_crc.c Outdated
@@ -50,9 +50,9 @@
* See description in cf_crc.h for argument/return detail
*
*-----------------------------------------------------------------*/
void CF_CRC_Digest(CF_Crc_t *c, const uint8 *data, int len)
void CF_CRC_Digest(CF_Crc_t *c, const uint8 *data, size_t len)

Check notice

Code scanning / CodeQL

Long function without assertion

All functions of more than 10 lines should have at least one assertion.
@thnkslprpt thnkslprpt force-pushed the fix-390-update-size-variables-to-typedefs branch from 4068927 to 13bfde8 Compare October 26, 2023 12:42
fsw/src/cf_crc.c Fixed Show fixed Hide fixed
Copy link
Contributor

@jphickey jphickey left a comment

Choose a reason for hiding this comment

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

Couple issues in here ... otherwise looks good I think

fsw/src/cf_cfdp_types.h Outdated Show resolved Hide resolved
fsw/src/cf_crc.c Outdated Show resolved Hide resolved
@thnkslprpt thnkslprpt force-pushed the fix-390-update-size-variables-to-typedefs branch from 13bfde8 to 602fe52 Compare December 13, 2023 20:56
@@ -941,7 +941,7 @@
struct
{
void * ptr;
uint32 size;
size_t size;

Check notice

Code scanning / CodeQL

Function too long Note

CF_GetSetParamCmd has too many lines (148, while 60 are allowed).
@@ -941,7 +941,7 @@
struct
{
void * ptr;
uint32 size;
size_t size;

Check notice

Code scanning / CodeQL

Long function without assertion Note

All functions of more than 10 lines should have at least one assertion.
@@ -50,9 +50,9 @@
* See description in cf_crc.h for argument/return detail
*
*-----------------------------------------------------------------*/
void CF_CRC_Digest(CF_Crc_t *crc, const uint8 *data, int len)
void CF_CRC_Digest(CF_Crc_t *crc, const uint8 *data, size_t len)

Check notice

Code scanning / CodeQL

Long function without assertion Note

All functions of more than 10 lines should have at least one assertion.
Copy link
Contributor

@jphickey jphickey left a comment

Choose a reason for hiding this comment

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

Looks good!

@thnkslprpt thnkslprpt force-pushed the fix-390-update-size-variables-to-typedefs branch from 602fe52 to 5f768d4 Compare January 14, 2024 22:08
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 25, 2024
@dzbaker dzbaker added CCB:Approved and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Feb 8, 2024
@dzbaker dzbaker merged commit 2164734 into nasa:main Feb 8, 2024
17 checks passed
@thnkslprpt thnkslprpt deleted the fix-390-update-size-variables-to-typedefs branch February 8, 2024 19:29
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.

A few size variables could be updated to size_t or CF_ChunkSize_t
3 participants