From patchwork Thu Dec 28 22:47:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steffan Karger X-Patchwork-Id: 165 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director6.mail.ord1d.rsapps.net ([172.30.191.6]) by backend31.mail.ord1d.rsapps.net (Dovecot) with LMTP id ewnsBVkxTlpdTgAAgoeIoA for ; Thu, 04 Jan 2018 08:51:21 -0500 Received: from proxy14.mail.ord1d.rsapps.net ([172.30.191.6]) by director6.mail.ord1d.rsapps.net (Dovecot) with LMTP id 7QNlBFkxTlowJwAAhgvE6Q ; Thu, 04 Jan 2018 08:51:21 -0500 Received: from smtp28.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy14.mail.ord1d.rsapps.net (Dovecot) with LMTP id WPqiBVkxTlrpDQAAtEH5vw ; Thu, 04 Jan 2018 08:51:21 -0500 X-Spam-Exception: WHITELISTED X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: patchwork@openvpn.net X-Originating-Ip: [184.106.54.117] Authentication-Results: smtp28.gate.ord1d.rsapps.net; iprev=pass policy.iprev="184.106.54.117"; spf=pass smtp.mailfrom="samuli@openvpn.net" smtp.helo="smtp117.ord1d.emailsrvr.com"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=fox-it.com X-Classification-ID: 580dd35e-f156-11e7-8e06-525400ea129b-1-1 Received: from [184.106.54.117] ([184.106.54.117:43585] helo=smtp117.ord1d.emailsrvr.com) by smtp28.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 78/CE-01582-8513E4A5; Thu, 04 Jan 2018 08:51:20 -0500 Received: from smtp23.relay.ord1d.emailsrvr.com (localhost [127.0.0.1]) by smtp23.relay.ord1d.emailsrvr.com (SMTP Server) with ESMTP id 74D6C20089 for ; Thu, 4 Jan 2018 08:51:20 -0500 (EST) X-Auth-ID: samuli@openvpn.net Received: by smtp23.relay.ord1d.emailsrvr.com (Authenticated sender: samuli-AT-openvpn.net) with ESMTPSA id D48DB20077 for ; Thu, 4 Jan 2018 08:51:19 -0500 (EST) X-Sender-Id: samuli@openvpn.net Received: from [192.168.15.45] (91-159-32-223.elisa-laajakaista.fi [91.159.32.223]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.7.12); Thu, 04 Jan 2018 08:51:20 -0500 Resent-From: =?utf-8?q?Samuli_Sepp=C3=A4nen?= Resent-To: patchwork@openvpn.net Resent-Date: Thu, 4 Jan 2018 15:51:18 +0200 Resent-Message-ID: <43a40585-58fe-2f0d-39d6-ed6441480589@openvpn.net> Resent-User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 Received: from MBX10C-ORD1.mex06.mlsrvr.com (172.29.1.28) by MBX10C-ORD1.mex06.mlsrvr.com (172.29.1.28) with Microsoft SMTP Server (TLS) id 15.0.1293.2 via Mailbox Transport; Fri, 29 Dec 2017 03:48:54 -0600 Received: from MBX12D-ORD1.mex06.mlsrvr.com (172.29.1.35) by MBX10C-ORD1.mex06.mlsrvr.com (172.29.1.28) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 29 Dec 2017 03:48:54 -0600 Received: from gate.forward.smtp.ord1c.emailsrvr.com (108.166.43.128) by MBX12D-ORD1.mex06.mlsrvr.com (172.29.1.35) with Microsoft SMTP Server (TLS) id 15.0.1293.2 via Frontend Transport; Fri, 29 Dec 2017 03:48:54 -0600 Received: from [216.34.181.88] ([216.34.181.88:54270] helo=lists.sourceforge.net) by smtp27.gate.ord1c.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 11/0D-04663-68F064A5; Fri, 29 Dec 2017 04:48:54 -0500 Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1eUrGt-0006Vh-07; Fri, 29 Dec 2017 09:48:11 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.192] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eUrGs-0006Va-37 for openvpn-devel@lists.sourceforge.net; Fri, 29 Dec 2017 09:48:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject: CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=emsSJ4h2Tw1N5CFKI/U3PBzVCBr7KjR7QZ2aPRbAnbA=; b=Oyp3uWJ0YQ/ygosTIN1oanmghC bAif+xpGULa33StjMCeZbOg1XAKjvpGc8389/a5CK1vQJ9uo4jNrMaJqgjXrJiZRdlJXFsJ28HLKy zMDVCG5KJbTNgxQDqSueRj61Yj9iL7W9kDC+mTV7LlYUCzR0tB5HhpWciULpOcxFr0UA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=emsSJ4h2Tw1N5CFKI/U3PBzVCBr7KjR7QZ2aPRbAnbA=; b=I xiNoqm3dPd0TXaQ2DYjmWAwMvCz8sM641nUFeUYHxTcmCHC71wdsvdQYZwnxbt8PBg/UMY8bLu+/k cLTiUrWwZmaeacUCe/RFXb/af8Lh12VrW6K14/TFX5gJYWSwY/OyNtPRzVEFNS9mL8Ma7U2w0kR/W pLkNvkNPpIHTLotY=; Received: from ns2.fox-it.com ([178.250.144.131]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtps (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.89) id 1eUrGq-0002ue-21 for openvpn-devel@lists.sourceforge.net; Fri, 29 Dec 2017 09:48:10 +0000 Received: from FOXDFT52.FOX.local (unknown [10.0.0.129]) by ns2.fox-it.com (Postfix) with ESMTPS id E768D1AF767 for ; Fri, 29 Dec 2017 10:48:01 +0100 (CET) Received: from steffan-fox.fox.local (10.0.3.167) by FOXDFT52.FOX.local (10.0.0.129) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 29 Dec 2017 10:48:01 +0100 From: Steffan Karger To: Date: Fri, 29 Dec 2017 10:47:37 +0100 Message-ID: <1514540857-19290-1-git-send-email-steffan.karger@fox-it.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: FOXDFT52.FOX.local (10.0.0.129) To FOXDFT52.FOX.local (10.0.0.129) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1eUrGq-0002ue-21 Subject: [Openvpn-devel] [PATCH] travis: use clang's -fsanitize=address to catch more bugs X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-MS-Exchange-Organization-Network-Message-Id: 48123290-efd2-49e7-94f8-08d54ea15f83 X-MS-Exchange-Organization-AVStamp-Mailbox: SMEXzs^g;1387100;0;This mail has been scanned by Trend Micro ScanMail for Microsoft Exchange; X-MS-Exchange-Organization-AuthSource: MBX12D-ORD1.mex06.mlsrvr.com X-MS-Exchange-Organization-AuthAs: Anonymous MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: Inbox The clang address sanitizer is able to catch quite a number of memory-related bugs, such add memory leaks and buffer under/overruns. So, enable the address sanitizer for one openssl and one mbedtls build. This would have caught the buffer list unittest memory leak that <1512724338-22197-1-git-send-email-steffan@karger.me> wants to fix. Signed-off-by: Steffan Karger --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1f669b3..99cd5e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ matrix: - env: SSLLIB="openssl" OPENSSL_VERSION="1.1.0f" os: linux compiler: gcc - - env: SSLLIB="openssl" + - env: SSLLIB="openssl" CFLAGS="-fsanitize=address" os: linux compiler: clang - env: SSLLIB="openssl" OPENSSL_VERSION="1.1.0f" @@ -42,7 +42,7 @@ matrix: - env: SSLLIB="mbedtls" os: linux compiler: gcc - - env: SSLLIB="mbedtls" + - env: SSLLIB="mbedtls" CFLAGS="-fsanitize=address" os: linux compiler: clang - env: SSLLIB="openssl"