From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Laatz, Kevin" Subject: Re: [PATCH] usertools: replace unsafe input function Date: Wed, 3 Apr 2019 11:31:09 +0100 Message-ID: <00d20004-b191-51b3-55e3-776ff734b45e@intel.com> References: <1553100181-32934-1-git-send-email-andrius.sirvys@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@dpdk.org, ciara.power@intel.com To: Andrius Sirvys , dev@dpdk.org Return-path: In-Reply-To: <1553100181-32934-1-git-send-email-andrius.sirvys@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 20/03/2019 16:43, Andrius Sirvys wrote: > LGTM static code analysis tool reports that the function 'input' is > unsafe. Changed to use raw_input which then converts it using > ast.literal_eval() which is safe. > > Fixes: d1b94da4a4e0 ("usertools: add client script for telemetry") > Cc: ciara.power@intel.com > > Signed-off-by: Andrius Sirvys > --- Looks good to me. Thanks! Acked-by: Kevin Laatz