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

Update to FPP v2.1.0a10 #2703

Closed
wants to merge 142 commits into from
Closed

Update to FPP v2.1.0a10 #2703

wants to merge 142 commits into from

Conversation

bocchino
Copy link
Collaborator

  • Addresses issue Remove TlmString, LogString, etc. from generated interface fpp#407
  • Cleans up string code and corrects off-by-one error in buffer sizes
  • Refactors code in Fw::StringBase that was terse and hard to understand (it was not clear what was going on with serializing and deserializing string lengths; because so much was implicit, it looked like the code was serializing and deserializing null-terminated strings).

Note: This PR will require some minor changes in user test code, as discussed in nasa/fpp#409. The changes bring the code more into line with approved C++ standards, by eliminating reliance on implicit conversions. I've made the required changes for the F Prime unit tests in this PR.

bocchino and others added 30 commits December 7, 2022 13:35
TimeBaseStoreType is not the same as TimeBase
Cast to the TimeBaseStore type with a known size
Remove unnecessary const casting
@bocchino bocchino requested a review from LeStarch April 27, 2024 00:57
@bocchino bocchino marked this pull request as ready for review April 27, 2024 00:59
// Deserialize length
// Fail if length exceeds max size (the initial value of actualSize)
// Otherwise deserialize length bytes and set actualSize to length
SerializeStatus stat = buffer.deserialize(reinterpret_cast<U8*>(raw), actualSize, Serialization::INCLUDE_LENGTH);

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter buffer has not been checked.
return buffer.serialize(reinterpret_cast<const U8*>(this->toChar()), len);
const FwSizeType len = FW_MIN(maxLength, this->length());
// Serialize length and then bytes
return buffer.serialize(reinterpret_cast<const U8*>(this->toChar()), len, Serialization::INCLUDE_LENGTH);

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter buffer has not been checked.
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@LeStarch
Copy link
Collaborator

Closing this PR as it has been subsumed by #2707

@LeStarch LeStarch closed this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants