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
Found via a static-analysis tool:
Suspicious dereference of pointer in function call before NULL check
Inside checkAllowedSYCLInitializer() in SemaSYCL.cpp file:
const Expr *Init = VD->getInit();
bool ValueDependent = Init->isValueDependent(); --> 'Init' is dereferenced by being passed as argument 0 to function "isValueDependent
bool isConstantInit =
Init && !ValueDependent && Init->isConstantInitializer(Context, false); --> 'Init' is checked for NULL here
This patch adds NULL value checking for 'Init' expression.
Signed-off-by: Soumi Manna <[email protected]>
0 commit comments