From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 46EC1A10DA for ; Thu, 1 Aug 2019 10:14:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80F5A1C1CB; Thu, 1 Aug 2019 10:14:16 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E98EA1C1CA for ; Thu, 1 Aug 2019 10:14:14 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Aug 2019 01:14:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,333,1559545200"; d="scan'208";a="184164140" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga002.jf.intel.com with ESMTP; 01 Aug 2019 01:14:12 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.164]) by IRSMSX151.ger.corp.intel.com ([169.254.4.41]) with mapi id 14.03.0439.000; Thu, 1 Aug 2019 09:14:12 +0100 From: "Ananyev, Konstantin" To: Aaron Conole , "dev@dpdk.org" CC: "De Lara Guarch, Pablo" Thread-Topic: [PATCH v2] librte_acl: fix undefined behavior Thread-Index: AQHVR7asn2xas2eCWEG7JEmxjJ3kLKbl8m4A Date: Thu, 1 Aug 2019 08:14:11 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772580168A60A7E@irsmsx105.ger.corp.intel.com> References: <20190730213920.17225-1-aconole@redhat.com> <20190731154311.8918-1-aconole@redhat.com> In-Reply-To: <20190731154311.8918-1-aconole@redhat.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzY1ZjE2N2QtNWVhZS00OWE5LWJmMDgtZjdkMzc1ZGExNzEwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiR0RlTGptSkVTUThWUlVrd0hieHdUVXFMK2NCK3NFS1pvSjdlRDFiMDUzeDhzREVhZFFtcUVGRTN6TjdidjFPMSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] librte_acl: fix undefined behavior X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >=20 > Left-shift of an integer constant is represented as 'int' type, but a lef= t > shift of 1 by 31 bits in 'int' is undefined. Use the U suffix to force > a representation as unsigned. >=20 > Caught while running with ubsan under gcc. >=20 > Fixes: dc276b5780c2 ("acl: new library") > Cc: Konstantin Ananyev > Signed-off-by: Aaron Conole > --- Acked-by: Konstantin Ananyev > 2.21.0