Tamas Mate has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20829


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

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
---
M be/src/exec/iceberg-metadata/iceberg-metadata-scan-node.cc
1 file changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/29/20829/1
--
To view, visit http://gerrit.cloudera.org:8080/20829
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6df9c9cb6914a0c6c93b61aa0dd02acfdba68851
Gerrit-Change-Number: 20829
Gerrit-PatchSet: 1
Gerrit-Owner: Tamas Mate <tma...@apache.org>

Reply via email to