You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS Version: Ubuntu 24.04
rviz version: ros2 jazzy
Compiler name and version number: Ubuntu clang version 18.1.3
Source or binary build?
source build
build options: --mixin asan-gcc
Description
In the constructor of rviz_rendering::TrianglePolygon, the input pointers Ogre::SceneManager* manager and Ogre::SceneNode* node are used without checking for null values. If either of these pointers is nullptr, the program will crash due to a segmentation fault or exhibit undefined behavior.
Operating System:
Linux shangzh-VMware-Virtual-Platform 6.11.0-21-generic #21~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 24 16:52:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
ROS version or commit hash:
ros2 jazzy
RMW implementation (if applicable):
No response
RMW Configuration (if applicable):
No response
Client library (if applicable):
rviz
'ros2 doctor --report' output
ros2 doc --report
Steps to reproduce issue
Environment
OS Version: Ubuntu 24.04
rviz version: ros2 jazzy
Compiler name and version number: Ubuntu clang version 18.1.3
Source or binary build?
source build
build options: --mixin asan-gcc
Description
In the constructor of rviz_rendering::TrianglePolygon, the input pointers Ogre::SceneManager* manager and Ogre::SceneNode* node are used without checking for null values. If either of these pointers is nullptr, the program will crash due to a segmentation fault or exhibit undefined behavior.
Test Case
Output
Expected behavior
The constructor should validate the manager and node pointers before using them:
If both are non-null, proceed with creating and attaching the Ogre::ManualObject.
If either is null, the constructor should throw an exception or log an error and avoid further execution to prevent crashes.
Actual behavior
No null check is performed before usage
Additional information
Suggested Fix
The text was updated successfully, but these errors were encountered: