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

Fixes to make 0.10.x branch pass tests on Ubuntu 24.04 #1964

Merged

Conversation

clalancette
Copy link
Contributor

While trying out CycloneDDS on Ubuntu 24.04, I found that some of the tests failed; see #1959 for more details.

This PR fixes those tests. It is a combination of three fixes:

  1. A partial backport of CI updates #1947 . In particular, when building with -DCMAKE_BUILD_TYPE=Debug, gcc 13.2.0 was complaining about an overrun of a buffer, and this fixes that.
  2. A backport of Fix GCC 12 analyzer warnings #1291 . This is a straight cherry-pick of the commit. Again, this solves a warning when building with gcc 13.2.0.
  3. A backport of Resolve snprintf buffer overflow under GCC 12.3.0 #1817 , which fixes the actual crashes. Because this needs some generated code, I followed the instructions in Failing tests on the releases/0.10.x on Ubuntu 24.04 #1959 (comment) to actually complete the backport here.

This should fix #1959

clalancette and others added 3 commits April 1, 2024 21:30
This is a partial backport of eclipse-cyclonedds#1947

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
If the number being formatted is near the maximum length for a 64-bit
number in decimal representation, then indeed the format string would be
too small -- but by construction the numbers are never that big.

Still, enlarging the buffer so the warning goes away is the more elegant
solution.

Signed-off-by: Erik Boasson <eb@ilities.com>
…ds#1817)

* ddsi_config: Fix buffer overflow for snprintf under GCC 12.3.0

* ddsi_config: Update generated files
Copy link
Contributor

@eboasson eboasson left a comment

Choose a reason for hiding this comment

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

Thanks @clalancette !

@eboasson eboasson merged commit f2ec524 into eclipse-cyclonedds:releases/0.10.x Apr 2, 2024
12 of 18 checks passed
@clalancette clalancette deleted the clalancette/fixes branch April 2, 2024 15:42
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

3 participants