From patchwork Sun Apr 19 19:30:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1273002 Return-Path: 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::13f; helo=mail-lf1-x13f.google.com; envelope-from=swupdate+bncbcxploxj6ikrb76n6l2akgqegpxuoea@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de 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=rvWO0+JV; dkim-atps=neutral Received: from mail-lf1-x13f.google.com (mail-lf1-x13f.google.com [IPv6:2a00:1450:4864:20::13f]) (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 4950Lb2zGPz9sSg for ; Mon, 20 Apr 2020 05:31:17 +1000 (AEST) Received: by mail-lf1-x13f.google.com with SMTP id b22sf3252678lfa.18 for ; Sun, 19 Apr 2020 12:31:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587324672; cv=pass; d=google.com; s=arc-20160816; b=wjZkwCUHTFUoOM7xAtyXc1AkzG5UFopnmCrWeEj4AaPT/z+5pxxRLx3w3KF5EIZVxE UMCx1yJphZiOB2w4QiHnMWchqpQvZATbFsGbIq6O9xj8i7tdF1V+ue79R4+VJDIImlqu 90Bbt1vt9QFpCYLVYdnDc0M4ovS9nZEa6iVvubv/Z+s+65DOW4fIEU3plvhrdMCdMgZ5 Nv37l0cVePUNFOGLNdJja8Yr+zBZPjK3N1tAemBRBTghMKoZfFkFyuLr+e3KJ8Dn30a4 s+3NJ44B/eTG8dt78pmOHk/k5AmL2+dTTjCEsF2+jGeT/ToVAoICeQOBYiGfIDK1TX/M u3Qg== 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=PbYH7Tn134NWFPYZD1NLGEynxYSwnyBy7LiwF4Oug5w=; b=XThoK8tQDb3kqqrNIX+UtJixYzqbxEZccD/CwAWAlbnGYp1cMihMGOPDgEqz0xIxiO dEY4+cYHKci/1cklK/d0qFyIG/XnWztGnoO4ESYY2pz9j+E+agLQ5R3D0m2R0fjYT5mX rEoyZBMPe3SbuCZiPKGcZIDcihKDD1SKAbJYlfZMdANTwl6SUvPVLo/Oc5fWbSie3JFm fP7/lmsS0ngrfkECY2ehsn5A10gPHAuxnf7BVOok4s6OObF2lZZnhDb4vdfLqIFCG6sq ueinLvqS3j986E3mWjHBwCXb/a/rsAK1J1X1japctrIPbCEfufX+1ZARS2ALvsco0O/e maXg== 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 sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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=PbYH7Tn134NWFPYZD1NLGEynxYSwnyBy7LiwF4Oug5w=; b=rvWO0+JVctPxJlBg2F9Vn+2UJTb+0XccbSkuYlSZgNAS3QpECIJQ4kVfLwTkn3Gu0g 4QaUWtXVmCAAqZkED4TfTCFTWE4Wua7CzG3xA4bIYBJhQpGZDA5tqSPMByFrlqMfXn9D 9uMxOWSgTMFQhkScI/uCEI5Ss97idwleNU7gBb1Ieq8eBQGmYvrKsFE9j14eUeSJ+fLS VzDxcaLbBE+NWJw6jORGHD9ev10d6hi99YdI5p0kntSFl1b4JrhYu357NOgNpQFjozjM qPJKXWqAihchsGjWtPeAvgPUX4bWY+Lnd7pBVNBLVLgDXPvde4Qmv5XheVGDULQsOvAm QT5g== 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=PbYH7Tn134NWFPYZD1NLGEynxYSwnyBy7LiwF4Oug5w=; b=adGJlMtkR8hmNukvf6IFxUQxsmd0wsM+nbNZSG53Nj16X4vpRFThMwHW55eEKdYAif powzHQPe4r8nVyNgGlrCJ/2jhZpt0P4AvF00KjcO76MFA7kWe/2j/sriKWoHDLEaOc7b powUh0MK3BALwvHy6gG0ZgIwBMWVxgM+CPBQGNe2igQfb9flZNijH7tNpEg/c8cvmiKy CEwtX8I3jxPRIiGni/Yc+V7cAtO3MigLv6qGeUES0x9eMacKGijZRZI4wORkEDAQ0J3R 1w0FyBhCC9MsuuSr3BB6L3Kxi/DP/6G6M3ibd3T6rJdUT2SZCLEoaWF5zK2VTChwc051 WKMg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AGi0PubnNxo823UQsPa74nIsSsun5nbdUk7erJpwMDHprFl8dGtDMzEL NG6btHVl/uqFAnPceZGEghE= X-Google-Smtp-Source: APiQypIFTigRulR0lYk2mU9QML4+ucBo9VdZw/XjHByWcIj0fWcIrcfzdZ4csyAsuo0q8CNWzKdnYw== X-Received: by 2002:a2e:91cc:: with SMTP id u12mr8515273ljg.244.1587324672273; Sun, 19 Apr 2020 12:31:12 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a19:5205:: with SMTP id m5ls1165662lfb.10.gmail; Sun, 19 Apr 2020 12:31:11 -0700 (PDT) X-Received: by 2002:a19:c607:: with SMTP id w7mr8185694lff.32.1587324671503; Sun, 19 Apr 2020 12:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587324671; cv=none; d=google.com; s=arc-20160816; b=COaJ2OH+3tIIjSVpNqajNfjx2OMOlOQ9KEjiDZH7yaOlce/0hypEBfpF5MT5BskBNl bEIWjvKSANMbeEE08BL0WOVyt/ryt6DC1mDHRme1k2Z/f/LobG47Ls3b54LyzVNk6nZh r1ocx310IK/936pNciD4oxRk7vWv9o49OIJI2tCtX6EAvPwuwVemTUWqlbvBRKKxe6bo H/K6yWXoy71P9eeo+debsda3eqyPI1SV6F9mqJB/0d38/uJqqmrf0/PnxuAsSkno3LxY DJRZbKKS2Wp+r0QQ6rqgRrPS6NJadAP0xEU2z28M7M/6WAy/qfb5GJrpkF2REZbIlcr/ EWbA== 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=Cw75H0kcBSPnUj1f6zYHj/hDj+iptNmNU7KVVSlu+Rs=; b=jdEKSXw6zfCgb8vgODOnBOXTLbCN6SoqRY6mNxCYyTshQI9t78yQP8vcl+ZxhIEfqU OqX6gF8k6PvZb7wheL2Di/KxNu/0E3u0iXqQ8J4OlBwDAhe7ziw3gpERi5FMJAeHCqWJ 5SHKzKSX+NHHd/wxlLCFAu0jEgZyA/GdNYKryw6f8rX0W9AiLxPczLcpVBY9Xnjvztw2 hRD8EdulCmASngUnmGb1PZcK3LhIG686fgMw7FF33ZYCpIbFNgkybckWiT5VgRt1v29d yuHV52w4Pvn+5+/Ey9R4jafj/Mz2lij9pL+OfHM/ku6C+wk8C9HmqSZHiLQpzJ9jrjt/ avlA== 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 sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id q24si1199434ljg.4.2020.04.19.12.31.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Apr 2020 12:31:11 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) 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 4950LQ6r8Gz1qrLx; Sun, 19 Apr 2020 21:31:10 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4950LQ6g4lz1qr51; Sun, 19 Apr 2020 21:31:10 +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 VYioEej762eC; Sun, 19 Apr 2020 21:31:10 +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; Sun, 19 Apr 2020 21:31:10 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id E0D6445403C1; Sun, 19 Apr 2020 21:31:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 12OFP4QUH5hm; Sun, 19 Apr 2020 21:31:06 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.38]) by babic.homelinux.org (Postfix) with ESMTP id 748504540577; Sun, 19 Apr 2020 21:31:06 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH] Fix #292114 Date: Sun, 19 Apr 2020 21:30:59 +0200 Message-Id: <20200419193104.22351-2-sbabic@denx.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200419193104.22351-1-sbabic@denx.de> References: <20200419193104.22351-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de 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 sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Stefano Babic --- core/notifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/notifier.c b/core/notifier.c index c21dcfa..03fddf8 100644 --- a/core/notifier.c +++ b/core/notifier.c @@ -102,7 +102,7 @@ void notify(RECOVERY_STATUS status, int error, int level, const char *msg) notifymsg.error = error; notifymsg.level = level; if (msg) - strcpy(notifymsg.buf, msg); + strlcpy(notifymsg.buf, msg, sizeof(notifymsg.buf) - 1); else notifymsg.buf[0] = '\0'; sendto(notifyfd, ¬ifymsg, sizeof(notifymsg), 0,