Commit abee55f
Add UBSan workflow and solve its errors (#6386)
* Refs #24364: Add UBSan workflow
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Add CMake Undefined Behavior option
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix building of tests with UBSan
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Compliance with ODR enum type in tests
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Regression Test Malicious Data
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Review - Meta file
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Ensure no duplicates originate in UBSAN report due to addresses
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Avoid calling memcmp with empty payloads
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in TimedEvent ctor
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in SampleLostStatus due to overflow
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in CDRMessage
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in statistics::DomainParticipant
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in ParticipantTests magically
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in UserListenerTests due to downcast
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in PoolConfig due to overflow
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in DataWriterTests magically
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in TCPv4Test due to wrong type cast
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in Security tests with SharedSecretHandle
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in Log Options
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in MonitorServiceTests
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Skip false positive of sqlite3.c
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix mac/windows build
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in DataReader/Writer blackbox tests
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in Latency tests
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in StatisticsTests magically
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in RTPSStatisticsTests magically
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
* Refs #24365: Fix UB in SecurityManager
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
---------
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
(cherry picked from commit 25a43a7)
# Conflicts:
# include/fastdds/statistics/dds/domain/DomainParticipant.hpp
# src/cpp/fastdds/domain/DomainParticipantFactory.cpp
# src/cpp/rtps/common/SerializedPayload.cpp
# src/cpp/rtps/history/PoolConfig.h
# src/cpp/statistics/fastdds/domain/DomainParticipant.cpp
# test/blackbox/common/DDSBlackboxTestsDataReader.cpp
# test/blackbox/common/DDSBlackboxTestsDataWriter.cpp
# test/blackbox/common/RTPSBlackboxTestsReader.cpp
# test/blackbox/common/RTPSBlackboxTestsWriter.cpp
# test/mock/rtps/PublisherHistory/fastdds/publisher/DataWriterHistory.hpp
# test/mock/rtps/TimedEvent/fastdds/rtps/resources/TimedEvent.h
# test/unittest/dds/participant/ParticipantTests.cpp
# test/unittest/dds/publisher/DataWriterTests.cpp
# test/unittest/dds/status/ListenerTests.cpp
# test/unittest/rtps/discovery/CMakeLists.txt
# test/unittest/security/authentication/CMakeLists.txt
# test/unittest/statistics/dds/StatisticsDomainParticipantStatusQueryableTests.cpp
# test/unittest/statistics/dds/StatisticsQosTests.cpp
# test/unittest/statistics/rtps/CMakeLists.txt
# test/unittest/statistics/rtps/RTPSStatisticsTests.cpp
# test/unittest/statistics/rtps/mock/StatisticsBase/statistics/rtps/monitor-service/MonitorService.hpp
# test/unittest/transport/TCPv4Tests.cpp1 parent f76ca8a commit abee55f
67 files changed
Lines changed: 3674 additions & 161 deletions
File tree
- .github/workflows
- config
- utils
- include/fastdds
- rtps
- messages
- resources
- security/logging
- statistics/dds/domain
- src/cpp
- fastdds
- domain
- publisher
- subscriber
- rtps
- common
- history
- resources
- security
- statistics/fastdds/domain
- test
- blackbox/common
- mock/rtps
- PublisherHistory/fastdds/publisher
- TimedEvent/fastdds/rtps/resources
- performance/latency
- unittest
- dds
- participant
- publisher
- status
- rtps
- discovery
- writer
- security
- authentication
- cryptography
- statistics
- dds
- rtps
- mock/StatisticsBase/statistics/rtps/monitor-service
- transport
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
547 | 551 | | |
548 | 552 | | |
549 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments