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
if type is equal to default then launchPoint is not checked. I also noticed that some functions in this class like onFind, onPutKind and onPutPermissions return always true.
The same function (getByLaunchPointId) when used in other pieces of code is checked.
Below there is an example:
I'm not sure if the check is missing because in these cases there is always a valid launchPointId. Maybe it's better to always perform the check before using the variable.
The text was updated successfully, but these errors were encountered:
I noticed that the function
LaunchPointList::getByLaunchPointId
can return anullptr
that is not always checked.sam/src/base/LaunchPointList.cpp
Lines 115 to 126 in af986e6
Consider the following lines:
sam/src/manager/PolicyManager.cpp
Lines 164 to 169 in af986e6
The variable
launchPoint
could be null, butgetType()
member function is called without any check.I found the same issue in
DB8::onFind
function.sam/src/bus/client/DB8.cpp
Lines 212 to 220 in af986e6
if
type
is equal todefault
thenlaunchPoint
is not checked. I also noticed that some functions in this class likeonFind
,onPutKind
andonPutPermissions
return always true.The same function (
getByLaunchPointId
) when used in other pieces of code is checked.Below there is an example:
sam/src/base/RunningAppList.cpp
Lines 87 to 93 in 1417869
I'm not sure if the check is missing because in these cases there is always a valid launchPointId. Maybe it's better to always perform the check before using the variable.
The text was updated successfully, but these errors were encountered: