From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BB0F8A0560; Sun, 26 Jun 2022 19:48:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5471541141; Sun, 26 Jun 2022 19:48:27 +0200 (CEST) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mails.dpdk.org (Postfix) with ESMTP id 45E7A40E50 for <dev@dpdk.org>; Sun, 26 Jun 2022 19:48:26 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 4E9B5320047A; Sun, 26 Jun 2022 13:48:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 26 Jun 2022 13:48:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1656265703; x= 1656352103; bh=h7eeY2E37FGsB/zmt6+ih6mchTo4U+vopp+IGia8FzY=; b=l DORKMKoeag9mZLY3cc0+bulA70owH8klbXEM3JFRMtocdTuc/Vl3x73MLIiW9PWY hwujoJkvbO4j30+3ri+69WDGltBBNlojlY6FSrhT8tcbC70NaD04YK+621s7A8p6 0jHOg9Hqqaq9znBIlpRoq0u2i8A7l2yl5+hUMekdpiGXeZJAv8SauEIZ/LMdIwK9 7dN7OTLuY9vheo5TCWaSMIz3WoSK6V+mXc+/0ebLnSxVQ/g4sckOASk1FjtFwoqW E9CobOHhjL0Oe6RKXukOJMQ3SqfIXoYfdWWCBXAU8+St7Bi+zXZuHJ8h2Na2zB7/ q++eHqs4GgW6Q31xBYzoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1656265703; x= 1656352103; bh=h7eeY2E37FGsB/zmt6+ih6mchTo4U+vopp+IGia8FzY=; b=P 8R3oABzv7elYjRaBAanztiFeDLQIhECgvcXgl9oFtZInaw0ezeZuL/35TU48IjQp k8tygucyNIV0cFaSr5bEZ35KxkcGa8RFS8fd/QI/lKDeZ4d0Dp54SaYNkK1mM4OL AhnrEvyUpenvmY9B0/IbvYiK8TGUVwg6ONU9eejjlTCOlPY7bg4iQa6nSCkIMlPX VrYuAGh4UpnPTrlGw4r6sBx3pVuu/JtLThMm5CiC0/e1Ox5fd/iOkn92kCVKmgT0 wbQIGNF6XD2kfzQz8fJt87YMTbPCAE51EhVm/PesRbVlY4QMlCPcxQUsPufvmoGM gpVj3+L7w66WPNZ6QhXYQ== X-ME-Sender: <xms:55u4YlzwP-IIoOpILSHf65y202CTEJ7xzlT_4-JcA7H5qQLBIsCjtg> <xme:55u4YlQb8mvWoB6jBxT3lVnpVxdJklFDK_9IOyfQ5AD6VIEyBz4U8nq0ok24Vv6D2 GyGyqcLBtzTb_5t1Q> X-ME-Received: <xmr:55u4YvVyc3ubExYXuScMTFCMkAcfQIYBpu3GxCRqz3-l9Ztgo-nJsD3uXVCvSnTrNf4ESoDTfij0P6RZmvse2eQ5dw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegfedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhho mhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqne cuggftrfgrthhtvghrnheptdejieeifeehtdffgfdvleetueeffeehueejgfeuteeftddt ieekgfekudehtdfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: <xmx:55u4Ynh8L_5Tda1eyoJmk3qXPjGY1QXsKHaQ2Z5ZDgB1oFXBwkwUDA> <xmx:55u4YnCT7-5LvSTRnKw9REneXBgATaJ8P4QfTbDUl_DKDHnl2kGLMA> <xmx:55u4YgIDn4ZSPcl4F-k7vDZTSR5xP0V5rNziI_-Tlb7zw01ydMTjHA> <xmx:55u4YjurfGz8z8jaYlopaQMZjBprNwpRzTjSAYg5rCAuqMo-vrVVPw> Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 26 Jun 2022 13:48:22 -0400 (EDT) From: Thomas Monjalon <thomas@monjalon.net> To: "Min Hu (Connor)" <humin29@huawei.com> Cc: dev@dpdk.org, ferruh.yigit@intel.com, cristian.dumitrescu@intel.com, jerinj@marvell.com, jianjay.zhou@huawei.com, jia.guo@intel.com, g.singh@nxp.com, andrew.rybchenko@oktetlabs.ru, hemant.agrawal@nxp.com, orika@nvidia.com Subject: Re: [dpdk-dev] [PATCH 05/10] app/test: add null pointer check of memory allocation Date: Sun, 26 Jun 2022 19:48:20 +0200 Message-ID: <6581870.tWeucmBOSa@thomas> In-Reply-To: <1618839289-33224-6-git-send-email-humin29@huawei.com> References: <1618839289-33224-1-git-send-email-humin29@huawei.com> <1618839289-33224-6-git-send-email-humin29@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org 19/04/2021 15:34, Min Hu (Connor): > From: HongBo Zheng <zhenghongbo3@huawei.com> > > The rte_zmalloc is called in test_crc_calc without null pointer > check. This patch adds null pointer checks on return value of > rte_zmalloc. > > Fixes: 9c77b848b1c1 ("test: add CRC computation") > Cc: stable@dpdk.org > > Signed-off-by: HongBo Zheng <zhenghongbo3@huawei.com> > Signed-off-by: Min Hu (Connor) <humin29@huawei.com> Applied only this patch, thanks.