From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 89D0D8DAE for ; Fri, 16 Oct 2015 15:39:42 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 16 Oct 2015 06:39:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,689,1437462000"; d="scan'208";a="794856373" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga001.jf.intel.com with ESMTP; 16 Oct 2015 06:39:41 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.138]) by IRSMSX107.ger.corp.intel.com ([169.254.10.49]) with mapi id 14.03.0248.002; Fri, 16 Oct 2015 14:39:40 +0100 From: "Dumitrescu, Cristian" To: =?utf-8?B?U2ltb24gS8OlZ3N0csO2bQ==?= , "dev@dpdk.org" Thread-Topic: Unsafe array accesses in rte_sched.c Thread-Index: AQHRB++TtYrB9mpLVU242ppTqS9pMp5uH52Q Date: Fri, 16 Oct 2015 13:39:39 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D89126478F0C50@IRSMSX108.ger.corp.intel.com> References: <5620BA12.9060702@netinsight.net> In-Reply-To: <5620BA12.9060702@netinsight.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] Unsafe array accesses in rte_sched.c X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2015 13:39:43 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogU2ltb24gS8OlZ3N0csO2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