webosose / sam

Systems and application manager
Apache License 2.0
8 stars 12 forks source link

Bug fixing possible null dereferences for launch point #4

Open echo-devim opened 2 years ago

echo-devim commented 2 years ago

LaunchPointPtr is a pointer initialized by calling getByLaunchPointId. This function can return a nullptr value, thus LaunchPointPtr could be null. A check to ensure the validity of the pointer should be always performed before it is used.

A more detailed description is reported in issue https://github.com/webosose/sam/issues/3