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

Fixing string_utils types to FwSizeType #2884

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

LeStarch
Copy link
Collaborator

Related Issue(s)
Has Unit Tests (y/n)
Documentation Included (y/n)

Change Description

Removing ambiguous U32 functions from StringUtils.

@LeStarch LeStarch added the Update Instructions Needed Need to add instructions in the release notes for updates. label Sep 19, 2024
@@ -24,7 +24,7 @@
StringBase::~StringBase() {}

const CHAR* StringBase::operator+=(const CHAR* src) {
this->appendBuff(src, StringUtils::string_length(src, this->getCapacity()));
this->appendBuff(src, static_cast<SizeType>(StringUtils::string_length(src, this->getCapacity())));

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter src has not been checked.
@@ -37,7 +21,7 @@
}

FwSizeType Fw::StringUtils::string_length(const CHAR* source, FwSizeType max_len) {
U32 length = 0;
FwSizeType length = 0;

Check notice

Code scanning / CodeQL

Use of basic integral type Note

length uses the basic integral type unsigned long rather than a typedef with size and signedness.
@LeStarch LeStarch merged commit fee9ba6 into nasa:devel Sep 24, 2024
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Update Instructions Needed Need to add instructions in the release notes for updates.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants