-
Notifications
You must be signed in to change notification settings - Fork 403
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
Iox #14 restrict access to chunk header #664
Iox #14 restrict access to chunk header #664
Conversation
…kSender Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
d8cfc2e
to
815f2a7
Compare
Codecov Report
@@ Coverage Diff @@
## master #664 +/- ##
==========================================
+ Coverage 74.04% 74.39% +0.35%
==========================================
Files 319 319
Lines 11180 11207 +27
Branches 1963 1963
==========================================
+ Hits 8278 8338 +60
+ Misses 2132 2098 -34
- Partials 770 771 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
…f iox_pub_init works Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
EXPECT_EQ(userPayloadRoundtrip, userPayload); | ||
} | ||
|
||
TEST_F(BindingC_Chunk_test, GettingUserHeaderFromNonConstChunkHeaderWorks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: I try to avoid NonConstFoo
and ConstFoo
. I prefer Foo
and ConstFoo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I try to be explicit since this tests are explicitly for the constness
…ccess-to-chunk-header Iox eclipse-iceoryx#14 restrict access to chunk header
Pre-Review Checklist for the PR Author
iox-#123-this-is-a-branch
)iox-#123 commit text
)git commit -s
)task-list-completed
)Notes for Reviewer
This PR restricts the write access to the
ChunkHeader
only to theChunkSender
. Everyone else has only read access. This prevents accidentally corrupting theChunkHeader
by e.g. setting the payload offset.Additionally const correctness is added to some methods of the
ChunkHeader
and the C API is adjusted accordinglyChecklist for the PR Reviewer
Post-review Checklist for the PR Author
References