systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYSTEMML-1769) Potential null dereference in PreparedScript#enableFunctionRecompile
Date Fri, 14 Jul 2017 22:51:02 GMT
Ted Yu created SYSTEMML-1769:
--------------------------------

             Summary: Potential null dereference in PreparedScript#enableFunctionRecompile
                 Key: SYSTEMML-1769
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1769
             Project: SystemML
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:
{code}
    FunctionCallGraph fgraph = _prog.getProgramBlocks().isEmpty() ? null :
      new FunctionCallGraph(_prog.getProgramBlocks().get(0).getStatementBlock().getDMLProg());
...
      if( !fgraph.isRecursiveFunction(fkey) ) {
{code}
The assignment indicates that fgraph may be null.
In the for loop, we should check fgraph against null before dereferencing.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message