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

Remove NATIVE_INT_TYPE, NATIVE_UINT_TYPE, and POINTER_CAST from Svc #3374

Open
wants to merge 34 commits into
base: devel
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5227dec
Remove NATIVE_* types from FileUplink
LeStarch Mar 12, 2025
0f44b4c
Remove NATIVE_* types from RateGroupDriver
LeStarch Mar 12, 2025
c86b6a2
Remove NATIVE_* types from ComLogger
LeStarch Mar 12, 2025
76241c5
Addressing init function usage of NATIVE_ types
LeStarch Mar 12, 2025
65e7721
NATIVE_ types from command dispatcher
LeStarch Mar 12, 2025
1ef205c
NATIVE_ types from ComQueue
LeStarch Mar 12, 2025
987cac8
NATIVE_ types from CmdSplitter
LeStarch Mar 12, 2025
a654039
U32 -> FwOpcodeType in CmdDispatcher
LeStarch Mar 13, 2025
0f91883
NATIVE_ types in BufferManager
LeStarch Mar 13, 2025
6986c6b
NATIVE_ types in LinuxTimer
LeStarch Mar 13, 2025
61481eb
NATIVE_ types from BufferAccumulator and renabling UT
LeStarch Mar 13, 2025
985a2c3
NATIVE_ types from TlmChan
LeStarch Mar 13, 2025
febf47e
NATIVE_ types from BufferRepeater
LeStarch Mar 13, 2025
f5f3743
NATIVE_ types from Active/Passive Rate Group
LeStarch Mar 13, 2025
4c0576c
NATIVE_ types from ComSplitter and ComStub
LeStarch Mar 13, 2025
da4c884
NATIVE_ types from ActiveLogger and fixed ActiveRateGroup sdd
LeStarch Mar 13, 2025
255d568
NATIVE_ types from Dp*
LeStarch Mar 13, 2025
bb7d065
NATIVE_ types from FileManager and ActiveLogger (missed)
LeStarch Mar 13, 2025
29ddfaf
NATIVE_ types from BufferLogger, FileDownlink, StaticMemory
LeStarch Mar 13, 2025
b7f9786
Deleting UdpSender/UdpReceiver that lack models and build config
LeStarch Mar 13, 2025
f259108
NATIVE_ types from Health
LeStarch Mar 13, 2025
3b1c9bd
NATIVE_ types from CmdSequencer
LeStarch Mar 13, 2025
7015ec6
NATIVE_ types from TlmPacketizer
LeStarch Mar 13, 2025
69fd08d
Fixing unit test issues
LeStarch Mar 13, 2025
063bfc4
POINTER_CAST from Svc
LeStarch Mar 13, 2025
b5f171e
CI fixes
LeStarch Mar 13, 2025
6d742c4
CI fixes (Linux)
LeStarch Mar 13, 2025
71ee45b
Fixing Ref/RPI for RG context
LeStarch Mar 13, 2025
3c2e08f
CI (sp)
LeStarch Mar 13, 2025
eead0a5
Fixing RPI build for time conversions
LeStarch Mar 13, 2025
8adc219
CI fixes (RPI)
LeStarch Mar 13, 2025
33a3774
Self review comments
LeStarch Mar 13, 2025
5a55178
Removing UDP sender/receiver config
LeStarch Mar 13, 2025
0befbc9
Review recommendations - pt 1
LeStarch Mar 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Review recommendations - pt 1
LeStarch authored Mar 15, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 0befbc967375e7c31197cc3a8f445e563c234403
1 change: 0 additions & 1 deletion Svc/TlmPacketizer/TlmPacketizer.cpp
Original file line number Diff line number Diff line change
@@ -59,9 +59,8 @@
// table
for (FwChanIdType pktEntry = 0; pktEntry < packetList.numEntries; pktEntry++) {
// Initial size is packetized telemetry descriptor + size of time tag + sizeof packet ID
//TODO: do I add a check here
FwSizeType packetLen =
sizeof(FwPacketDescriptorType) + Fw::Time::SERIALIZED_SIZE + sizeof(FwTlmPacketizeIdType);

Check notice

Code scanning / CodeQL

Use of basic integral type Note

packetLen uses the basic integral type unsigned long rather than a typedef with size and signedness.
FW_ASSERT(packetList.list[pktEntry]->list, static_cast<FwAssertArgType>(pktEntry));
// add up entries for each defined packet
for (FwChanIdType tlmEntry = 0; tlmEntry < packetList.list[pktEntry]->numEntries; tlmEntry++) {
@@ -85,7 +84,7 @@
FW_ASSERT(packetLen <= FW_COM_BUFFER_MAX_SIZE, static_cast<FwAssertArgType>(packetLen), static_cast<FwAssertArgType>(pktEntry));
// clear contents
memset(this->m_fillBuffers[pktEntry].buffer.getBuffAddr(), 0, static_cast<size_t>(packetLen));

Check warning

Code scanning / CodeQL

Unchecked return value Warning

The return value of non-void function
memset
is not checked.
// serialize packet descriptor and packet ID now since it will always be the same
Fw::SerializeStatus stat = this->m_fillBuffers[pktEntry].buffer.serialize(
static_cast<FwPacketDescriptorType>(Fw::ComPacket::FW_PACKET_PACKETIZED_TLM));
FW_ASSERT(Fw::FW_SERIALIZE_OK == stat, stat);
@@ -131,7 +130,7 @@

TlmPacketizer::TlmEntry* TlmPacketizer::findBucket(FwChanIdType id) {
FwChanIdType index = this->doHash(id);

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter id has not been checked.
FW_ASSERT(index < TLMPACKETIZER_HASH_BUCKETS);
TlmEntry* entryToUse = nullptr;
TlmEntry* prevEntry = nullptr;

@@ -190,7 +189,7 @@
FW_ASSERT(this->m_configured);
// get hash value for id
FwChanIdType index = this->doHash(id);

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter id has not been checked.
TlmEntry* entryToUse = nullptr;

// Search to see if the channel is being sent
entryToUse = this->m_tlmEntries.slots[index];
Loading