[ 
https://issues.apache.org/jira/browse/IMPALA-12661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799957#comment-17799957
 ] 

ASF subversion and git services commented on IMPALA-12661:
----------------------------------------------------------

Commit 9fd1c81845e7d84ed6b9a903aa6ebe37a8abd254 in impala's branch 
refs/heads/master from Tamas Mate
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=9fd1c8184 ]

IMPALA-12661: Fix ASAN heap-use-after-free in IcebergMetadataScanNode

The ASAN builds detected that the IcebergMetadataScanNode uses heap
allocated memory after it has been freed.

In CreateFieldAccessors() method, during tree traversal, the
current_type variable is reassigned to its children which is part of
of the object. However, by the end of the assignment the rhs object will
be destroyed. To fix this issue, the variable was replaced with a pointer.

Testing:
 - Ran tests on ASAN build

Change-Id: I6df9c9cb6914a0c6c93b61aa0dd02acfdba68851
Reviewed-on: http://gerrit.cloudera.org:8080/20829
Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>


> ASAN heap-use-after-free in IcebergMetadataScanNode
> ---------------------------------------------------
>
>                 Key: IMPALA-12661
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12661
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>            Reporter: Csaba Ringhofer
>            Priority: Critical
>         Attachments: asan.txt
>
>
> See asan.txt for details.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to