-
Notifications
You must be signed in to change notification settings - Fork 775
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
[13364] Fix memory problem when ciphering payload #2485
Conversation
This PR breaks several security tests:
|
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.
After a meeting we decided this approach is not the better one. The calculation has to be done when the CacheChange_t
is added in the WriterHistory
, as it is done now. According to @MiguelCompany we have to take into account the size of the DataFrag header when calculating the size of each fragment.
875e4c9
to
87c73e7
Compare
@richiware This has been rebased, and I have changed the last commit (the one that fixes the issue), with a nicer solution. Would you mind reviewing this? |
87c73e7
to
2d45c97
Compare
Signed-off-by: Miguel Company <[email protected]>
@richiprosima Please test this |
@richiprosima please test windows test mac |
@richiprosima please test windows |
1 similar comment
@richiprosima please test windows |
@MiguelCompany do we need to backport this? |
@Mergifyio backport 2.12.x 2.11.x 2.10.x 2.6.x |
✅ Backports have been created
|
* Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 25dee05)
* Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 25dee05)
* Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 25dee05)
* Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 25dee05) Co-authored-by: José Luis Bueno López <[email protected]>
* Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 25dee05) Co-authored-by: José Luis Bueno López <[email protected]>
* Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> (cherry picked from commit 25dee05) Co-authored-by: José Luis Bueno López <[email protected]>
* Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
* Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
* Fix memory problem when ciphering payload (#2485) * Refs 13364. Regression test. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. fix build when TLS_FOUND Signed-off-by: JLBuenoLopez-eProsima <[email protected]> * Refs 13364. Test with different lengths. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Apply review suggestions. Signed-off-by: Miguel Company <[email protected]> * Refs 13364. Fix #2379. Signed-off-by: Miguel Company <[email protected]> * Include what you use in DDSBlackboxTestsSecurity.cpp Signed-off-by: Miguel Company <[email protected]> * Refs #13364. Fix warning. Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]> * Fix build with TLS, but not security (#4156) Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Miguel Company <[email protected]> Signed-off-by: JLBuenoLopez-eProsima <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: José Luis Bueno López <[email protected]> Co-authored-by: Miguel Company <[email protected]>
This closes #2379