Message ID | 20190314144205.7271-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBROQVHSAKGQEVKUDFBA@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13b; helo=mail-lf1-x13b.google.com; envelope-from=swupdate+bncbcxploxj6ikrbroqvhsakgqevkudfba@googlegroups.com; receiver=<UNKNOWN>) 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.b="Xu+Pi3DP"; dkim-atps=neutral Received: from mail-lf1-x13b.google.com (mail-lf1-x13b.google.com [IPv6:2a00:1450:4864:20::13b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44Kryg5GBYz9s71 for <incoming@patchwork.ozlabs.org>; Fri, 15 Mar 2019 01:42:18 +1100 (AEDT) Received: by mail-lf1-x13b.google.com with SMTP id g19sf551299lfb.11 for <incoming@patchwork.ozlabs.org>; Thu, 14 Mar 2019 07:42:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552574533; cv=pass; d=google.com; s=arc-20160816; b=kWSZqDV/Zg1Cuh13pnFSvrET+0Y8Mt12XkBj+cLyyQ12I8SEDOQJChVqU26YGsi4fh 82MxdUzbD4hua/qtEVZ55EZ+B2nDdRj+2abqUtC58pMi0Y+WmlHSYnD4wx094IyG4PlH f2U1UvtEhw/U3vMF1L2XfH2t20S2AoEwqGjsKGfSghRn2Q36jvvFZx/kWkfhanRyGCuR +1V97A7UGm1DL29Z/6x5ahq/psq7P5nGN+ibPbm6ka4mvlrmt/YlMD6yHc5mx3P40jYY E3HnqjSUgUCwyaD/B9auP7aP4cpbwvR83gf3Bw1u+qD2Du0pKYbmjt/rkXiSHuRgRUeG vuKQ== 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:message-id:date:subject:cc:to:from :mime-version:sender:dkim-signature; bh=qz38kcQJejPvI8q5Zn89YnzvktFzgKx66jffmi9WODU=; b=TrmeRQTFLkRE+Hyau9ij4LMStgkwV3SyE31+f14gDG5iWd4H1BdEwvSNlCD/4Js7p3 v3phufWsCVfF4H2bvkeJAfyyr/tvqXOAMLtAxtTMiPYuZe8jLkw32YKml9a8qdo8iJst t+Qxz91Qo4vp4pj8CdXR3ckAFEloOLBFax3TA0sRR797s8MJE5CmtfPv/E0Mowkf2g4I gWu2yyIGvJeWcBm1LAK6glQTMqiCnMvwlD/TIPcolLMgHPYCOAiuYcmOa8UiAkAwsIKZ kvjezH5OvAhGsJuMpyUyfZwXUZ2axsLKflFiFs9GbT4nFurC6bXEPf2sAOv25hN2nMZH Md0g== 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:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=qz38kcQJejPvI8q5Zn89YnzvktFzgKx66jffmi9WODU=; b=Xu+Pi3DPbso9enCyGznFNqKbJkqYfyf7OoDm00144IAAq3K2mNgaIwGP9y9EL+TwH5 /Jqm5r2UPwA82N2CglvFQyEzVUMG/KdI+OVRkuJy8SB4lnadtqBTKGHxYR8MilhLoShz PWDH6Na7WLjL2gZ4zLAfbBEMkCqhu3HsNVBKs3xICMJ791eYwaHgiTPjsyV79NEQUtlz cCB47rN4zxyZq+pOU8WTe/BuaHkyepi/4V3rz95WFr6vWyWwJ6tYdX2bzhmdmB94RLvZ 5vxsgMRhN9LjKejdsUSUw6WyTutd2fWH2J4rZecDNkrAUjAcPyr56rvKZTintqiuMqP1 6uDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id: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=qz38kcQJejPvI8q5Zn89YnzvktFzgKx66jffmi9WODU=; b=fuAKna8NNsw/eRMDxs817/5VLRrsRb8SeupAoql5ZejIVY8BTMfYjSIgfYDxhlcq+6 uk+Pc4A1Y3EfqGMUlWKWj2eTfHUGK54b/Y6W+q+PvdbDDA0LLKFyuohqYCWkVjrSHfy2 E/TOCJGnvweVteOig9Mi7sa09Ybx4x+Q6DfWe5qRzNkNtgZnbZp8/nn/PSaWGw+Q64rM G9uJKhMb42Ou1yIE6eNG7s04UOv5HMcePVFjcHibFBN5aRo5zDrwp306j9h/2QQ+Z7k6 l2aM22OeEdo8/FOBgml1p44E3bb3gZk0eJdcue1MFSFHFna+h5Of+LlVVnv8U9mMaON1 ieAg== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAXbzgUM0Spbpav1b2jlTdjWjvfdMAMBO0AbSvYzppSwjG82exdL d5CzWA8SaIATZNi4l0R2Vyk= X-Google-Smtp-Source: APXvYqzE5FHxfEFmmlkv5R895cyfkBtI/FnEOcssgM8l8oKogPBt6UPnNFTWe58psWt4jg/BvOyYPg== X-Received: by 2002:a2e:84ce:: with SMTP id q14mr1350999ljh.104.1552574533800; Thu, 14 Mar 2019 07:42:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a19:4b42:: with SMTP id y63ls582092lfa.7.gmail; Thu, 14 Mar 2019 07:42:13 -0700 (PDT) X-Received: by 2002:ac2:515d:: with SMTP id q29mr3016567lfd.10.1552574533087; Thu, 14 Mar 2019 07:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552574533; cv=none; d=google.com; s=arc-20160816; b=Mw1rJANhfXy4OkUeokKYM8jqkiaxdGuGIdAqQMaDrboEUZdF3xK8gpP6Kr5gv4iAxW NapUYSX+XPD+U5zMyoA/YMN9zTVQm2l1AoPAOzOaCIs3T7wK++D2BlaiDI3ua+zblEvF vJWS5EtZyl++zEK8SIOmJhn0veaVQ0sAwCb1bwPf/++Gg2zP8brFRTregmDJ5c6Ptgcp mWmOef4B+Tw1IfC+v/5iDiK1ev7oNI6BExOsu8fb3ch+JBWOsDkXgD7kmzxR7ZGTwJBj CW67wHV5PEsGOMcv+mu9yq2djwDjE2OpAnnYmTRObeMrXYuw7ldgK6y4QGvt8STN+rIG nbOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=6yygLUytlemRaog2sBEMinrt93aOZXwuqa/tC47gDFU=; b=SixgXa/nIeI3Y+T9aulx65asP0CoGJVlTzOVqaIS68QKRm923mPPwk3sBOwTwwQCnG xXp9SjM7teQhF/vR1g9MGLIsBUMnyh4BRzk3lRQ/BIus37PLEP8z9qQuUHUiZ9O68iqp 5qifRqvKNuqUKAZLRSlIq6szXdPazCsuNejQ93j/6u+KHi7/iz1Zk2ZUBqJSCP0XMOpO 14fJP55z89L4AN89buJYUBjnsf1L49BD7E9rtSC4UTv0vHXNibaeJGhrnKGbwRij3Su+ cPyv3iN76LdUzlUiPrubhVXk0Q+pR8Y+8CTupnCa5tz/ineQwbu5mFKyjtVSVtVb1c11 Hh1A== 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 i21si195857ljj.0.2019.03.14.07.42.12 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Mar 2019 07:42:12 -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 44KryX38YKz1rWHG; Thu, 14 Mar 2019 15:42:12 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 44KryX2zDQz1r2Hw; Thu, 14 Mar 2019 15:42:12 +0100 (CET) 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 S_f3rAoRkDdG; Thu, 14 Mar 2019 15:42:10 +0100 (CET) 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; Thu, 14 Mar 2019 15:42:10 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 0D84A4540419; Thu, 14 Mar 2019 15:42:10 +0100 (CET) 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 9283WiOSFM1r; Thu, 14 Mar 2019 15:42:08 +0100 (CET) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 45FB84540115; Thu, 14 Mar 2019 15:42:08 +0100 (CET) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH] parser: increase size for bootloader variables Date: Thu, 14 Mar 2019 15:42:05 +0100 Message-Id: <20190314144205.7271-1-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 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 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 |
parser: increase size for bootloader variables
|
expand
|
diff --git a/parser/parser.c b/parser/parser.c index bc89b9d..959d09e 100644 --- a/parser/parser.c +++ b/parser/parser.c @@ -409,8 +409,8 @@ static int parse_bootloader(parsertype p, void *cfg, struct swupdate_cfg *swcfg) void *setting, *elem; int count, i; struct img_type *script; - char name[32]; - char value[255]; + char name[SWUPDATE_GENERAL_STRING_SIZE]; + char value[MAX_BOOT_SCRIPT_LINE_LENGTH]; setting = find_node(p, cfg, "uboot", swcfg);
It looks like there are more creative ways for the bootloader environment as initially thought and this leads to very long scripts. They are currently truncated by SWUpdate - increase the size for each variable to 1K. Signed-off-by: Stefano Babic <sbabic@denx.de> --- parser/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)