Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 22025200C55 for ; Thu, 30 Mar 2017 04:49:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2075E160B95; Thu, 30 Mar 2017 02:49:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 663C1160B8A for ; Thu, 30 Mar 2017 04:49:17 +0200 (CEST) Received: (qmail 79292 invoked by uid 500); 30 Mar 2017 02:49:16 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 79280 invoked by uid 99); 30 Mar 2017 02:49:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2017 02:49:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id ED5661A04B7 for ; Thu, 30 Mar 2017 02:49:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id PoScI_qDL5Wg for ; Thu, 30 Mar 2017 02:49:15 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 14F1D5FBBB for ; Thu, 30 Mar 2017 02:49:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v2U2nDhV007751; Thu, 30 Mar 2017 02:49:13 GMT Message-Id: <201703300249.v2U2nDhV007751@ip-10-146-233-104.ec2.internal> Date: Thu, 30 Mar 2017 02:49:12 +0000 From: "Zach Amsden (Code Review)" To: Bharath Vissapragada , Henry Robinson , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Jim Apple , Lars Volker Reply-To: zamsden@cloudera.com X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5123=3A_Fix_ASAN_use_after_free_in_timezone_db=0A?= X-Gerrit-Change-Id: I490f741403ea2004bc51394aa1251577337b1e1d X-Gerrit-ChangeURL: X-Gerrit-Commit: b4fcbb895e495adecaff8c23d446d5aff67e7b8b In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Thu, 30 Mar 2017 02:49:18 -0000 Hello Bharath Vissapragada, Henry Robinson, I'd like you to reexamine a change. Please visit http://gerrit.cloudera.org:8080/6503 to look at the new patch set (#5). Change subject: IMPALA-5123: Fix ASAN use after free in timezone_db ...................................................................... IMPALA-5123: Fix ASAN use after free in timezone_db The issue is that the string temporary returned by .string goes out of scope immediately after being created. Also, the API to mkstemp is unclear on whether it modifies the string in place. Just strdup() the c_str() to be safe - this is not performance critical code. Testing: ASAN build, running expr-test be test; ASAN fails before, passes after this change. Change-Id: I490f741403ea2004bc51394aa1251577337b1e1d --- M be/src/exprs/timezone_db.cc 1 file changed, 10 insertions(+), 5 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/03/6503/5 -- To view, visit http://gerrit.cloudera.org:8080/6503 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I490f741403ea2004bc51394aa1251577337b1e1d Gerrit-PatchSet: 5 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Zach Amsden Gerrit-Reviewer: Bharath Vissapragada Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Lars Volker Gerrit-Reviewer: Zach Amsden