You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Daniel Becker (Jira)" <ji...@apache.org> on 2022/06/16 14:52:00 UTC

[jira] [Created] (IMPALA-11365) Dereferencing null pointer in TopNNode

Daniel Becker created IMPALA-11365:
--------------------------------------

             Summary: Dereferencing null pointer in TopNNode
                 Key: IMPALA-11365
                 URL: https://issues.apache.org/jira/browse/IMPALA-11365
             Project: IMPALA
          Issue Type: Bug
            Reporter: Daniel Becker
            Assignee: Daniel Becker


In the constructor of TopNNode, if {{pnode.partition_comparator_config_}} is NULL, we initialise {{partition_cmp_}} with a NULL pointer. However, when initialising {{{}partition_heaps_{}}}, we dereference {{partition_cmp_}} because {{ComparatorWrapper}} expects a reference.

This has so far not lead to a crash because in this case the comparator of {{partition_heaps_}} is not used, but assigning a NULL pointer to a reference is undefined behaviour.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org