Message ID | 20210705115317.127426-2-stefano.babic@babic.homelinux.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBD2ZDGN6SEKRBNXFRODQMGQEHMMUFGI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43d; helo=mail-wr1-x43d.google.com; envelope-from=swupdate+bncbd2zdgn6sekrbnxfrodqmgqehmmufgi@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=qK8Fdt30; dkim-atps=neutral Received: from mail-wr1-x43d.google.com (mail-wr1-x43d.google.com [IPv6:2a00:1450:4864:20::43d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GJPGP3zXHz9sXM for <incoming@patchwork.ozlabs.org>; Mon, 5 Jul 2021 21:53:32 +1000 (AEST) Received: by mail-wr1-x43d.google.com with SMTP id j2-20020a0560001242b029012c82df4dbbsf5247673wrx.23 for <incoming@patchwork.ozlabs.org>; Mon, 05 Jul 2021 04:53:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625486006; cv=pass; d=google.com; s=arc-20160816; b=EaJ1IfG0BME2QWQVZ319Q8KgafhUzu8Jl8ufoAzj+3Uyliw0klz+A0l0YxdOPyI3qt DP2sjHnQQFW2oBVk7Uk6sc8T/7NElkaw3H7JQH5lkzKXnMD4pR4SSrX4E1gI2ZywS5GI CokBBIldzGliwCaHTPKiNb/vkxBsLsLOAggBRAa1AjNBEr3ps59sl6t0BfqiEr6Nw8yZ ksVS3CTYGWnbp+/OlXnXqvkeM37HHF8cJ8XmXhShgAozQ0Lk0p4PIpxej054ecg4Nluf 4dKdlGkEfO9DdBpYBZy7Elb8edD6edtW7rbQN0qyXFO+Nx4QYpsQFCSuTNiaYmJbxsQ3 V/sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=yn29P2bHExHgSJ6c/BXA37a8xblc8DPkfMkzyLj+Kpw=; b=cvSI/7RWw0OPECHYNq5GO3AHl3TMHrxKG6VWmJVxhNJPkc/mLqtqrjlntxdOYPa+/8 OceQD6ZFsldAI1B9Ni7CTXjac9kkSmIXYrhjGV+jfO51ibCjmUq2RbzJfTFQdNdQ/g94 FxvL7nFaPHbRBe0GOZMTVJ4+oSLbLWOKCIh0QWX/1jFaCwNRicJSSerAzdJKowdjrfLT GaJHPdzdDW0NYJidxoZjMpT67uN7PzREgrOseo7mYnOyAWMu86L1NPkjMt7GqhexE/rw vU2wf60MV4Z+dcoAep7EdLz/5ssMKutXfGyNB/NeMo9M+8fl8VQXO/05Dvp7jg/iyCOm n4qw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of stefano.babic@babic.homelinux.org) smtp.mailfrom=stefano.babic@babic.homelinux.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=yn29P2bHExHgSJ6c/BXA37a8xblc8DPkfMkzyLj+Kpw=; b=qK8Fdt30XsEn9/0Gt/Ylx97StA6PhKIyNyOjOcSm2JZYSwg5WaM3brur9qCJAcbb2G MWjxbcVlJAFCIT7+QPlYSyrH4PSTRzvAfQQ7mwYpbd05dzBGJrHypI2eYdBUkGu6MR0f sPkVDor2E4Ucp9CMDHWXANGYqzwKRVCGcPVuNmddpvgmAXmKKIQ+31FoFSRAuEkahx0Y dls+aTN+6Ckv5p7NbSq80e2iv5WqPFXFAb9oqb6sudaxb3xFC1+CEtl4ZRWJo9Rkkeai 4SraiiWgU3WKT2v9nTNCs2Z8LRdoHms4aL4fjh/IHa6iSepNYgBfURNtkqVvLzZ9bECj CBSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=yn29P2bHExHgSJ6c/BXA37a8xblc8DPkfMkzyLj+Kpw=; b=uBta5pqzlLEpkRAsAvnNA858EAjFpE1Wdlr9DTBj9OdKEhLB7KKF5ayjJzM81RG7BA NqLIJhYc1IY31De+x0P4nhlvcYihZNOjGTVsefeH0CM5NnJMDh3NyttOJoMWAOoO8WlW 95ZVytIs8B4s5vWGLbJXwTbIWkHdEa/m2xD2bTkDbz9hkk6CWj8d1WMr8TqT7srq6q3e LGDLz2mOChm35kAX0NXAOHJrDqagigePwdqhlVPb39XtBgdl0bU7KGSsn/1QNxAZA35m iPCE7zj1PePNwuTEVOfSpgqf6CvOmpOrS87N9GEc5xEA+Uwf7F71SDgQui3wOtaypitd RMOw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531pVy4M03Y6WCtRmPnYJnAzVXKbjEvmrBE8x0/wT5A8Dlz77JsS b1Z4MxTP6zRbibj0p3zZ/00= X-Google-Smtp-Source: ABdhPJw+Z1PLWqv0CyUbDEaXbMVwh8Pr+kQEorQksUQwbSzva9x4kaEgJYjK8a7gQ4As29NRhsv9uw== X-Received: by 2002:a05:6000:186a:: with SMTP id d10mr15680357wri.41.1625486006709; Mon, 05 Jul 2021 04:53:26 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:1c90:: with SMTP id k16ls8224583wms.2.canary-gmail; Mon, 05 Jul 2021 04:53:26 -0700 (PDT) X-Received: by 2002:a05:600c:3b90:: with SMTP id n16mr13479141wms.70.1625486005976; Mon, 05 Jul 2021 04:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625486005; cv=none; d=google.com; s=arc-20160816; b=CzmvX4oJlILLMqg4m74W0rgSi3H98Ru2jqZ745XB3GrzS6eqBkYVGY8tRFlMikagaf QZQjR+nKxCDrQxDgENRRToirudlrMIExAGy9w3Cu7sZhvY9oPrBpgDDRjgZe4GOpVk4H +G51sDHDxcjhA3UnR17lq3y1PLnNeE3EJ6O/3QOnKpOe5/POEbzfnSfeR0pxRY0lbtdP E5F28hOdz22DgFbB35drk9qjvb7tzSd73C4l1Jl3Pv7aGAJ8NeOLyDbEJMk3RlwFlWPX PFvNfOqndpdftAqY0/ymT5NmV2z97OeOfpV8TJgzzg52MYRBCJxsJSfDwCeNSZzNgRWn UXww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=r2lnkOO/fxxzx+d5XuhJalzpMi6h9rim1dXhIX/lNI8=; b=IfOFYew+NhalU7mPWOi88OULbjhb1Hlr6ashIJofa7/PLhPYCgde/CJ4rwEyyQj6cT qAPfjVQc1oc/lD53dCR/01wOU6QBBueWPy4DlobY5s5U+KAFVcEyLh1ibr0N1/0PO/iF 9V98GB3B6qh0tAqCdu51ykoqCSeEV4CF3MSgOPL5deRa0Uu5sSq8VIQbxMLeh+D0PWPk qOswNMW7680f1vKNFnIBN5f1qRpSFAAeIMM7XkH9u5fVB8f7lHdrvWeiIeUKVVcpRbOZ wJB7J9MWK8iU/3N4f7spv4Lm4y2mVL46dMvC0OEBmfYMl2lt3asiaUPLdKC/atWvhrmB CYSQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of stefano.babic@babic.homelinux.org) smtp.mailfrom=stefano.babic@babic.homelinux.org Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id h15si493345wru.3.2021.07.05.04.53.25 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jul 2021 04:53:25 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of stefano.babic@babic.homelinux.org) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4GJPGF5d7Cz1qtdY; Mon, 5 Jul 2021 13:53:25 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4GJPGF5Pf6z1qr3g; Mon, 5 Jul 2021 13:53:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id a5bmB9L-01kE; Mon, 5 Jul 2021 13:53:25 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Mon, 5 Jul 2021 13:53:25 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 1E765454074F; Mon, 5 Jul 2021 13:53:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KDGE75zV43sS; Mon, 5 Jul 2021 13:53:19 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id EE5104541274; Mon, 5 Jul 2021 13:53:18 +0200 (CEST) From: stefano.babic@babic.homelinux.org To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH 2/2] Fix coverity #314955 Date: Mon, 5 Jul 2021 13:53:17 +0200 Message-Id: <20210705115317.127426-2-stefano.babic@babic.homelinux.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210705115317.127426-1-stefano.babic@babic.homelinux.org> References: <20210705115317.127426-1-stefano.babic@babic.homelinux.org> MIME-Version: 1.0 X-Original-Sender: stefano.babic@babic.homelinux.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of stefano.babic@babic.homelinux.org) smtp.mailfrom=stefano.babic@babic.homelinux.org Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[1/2] Fix coverity #292113
|
expand
|
diff --git a/suricatta/server_hawkbit.c b/suricatta/server_hawkbit.c index 33d2eec..805158d 100644 --- a/suricatta/server_hawkbit.c +++ b/suricatta/server_hawkbit.c @@ -1485,6 +1485,10 @@ server_op_res_t server_send_target_data(void) } char *configData = (char *)(malloc(len + 16)); + if (!configData) { + ERROR("OOM when sending ID data to server"); + return SERVER_EERR; + } memset(configData, 0, len + 16); static const char* const config_data = STRINGIFY(