Change all length fields to size_t #12
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#12
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Started replacement in DHB rework.
Replaced uint32_t/int32_t for all SerializeIF calls (ssize_t for int32_t). There are a lot of functions implementing SerializeIF. merge request coming soon
Is size_t intended to be used in SerializeIF? And how to handle the signed size?( ssize_t)
Possible C++11 solution:
After talking with Steffen: Maybe also use size_t for deSerialize and detect overflows by
using
to check for overflows?
This has potential to create evil bugs if it is not done properly for alle deSerialize calls/overrides
#35 started work on this
No need to typedef ssize_t, it is in stdio.h sys/types.h and unistd.h, one of which should be available in a typical installation.
We can just use size_t like discussed for deSerialize.
Example AutoSerializeAdapter:
What's the state of this issue?
Most usages are fixed by now. I think we can open issues/pull request for single fixes, because they should be rare now.