From nobody Sat Feb 7 09:03:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1586567340; cv=none; d=zohomail.com; s=zohoarc; b=eEmNjzy+XHdtGowrEqi3hG/1R4qh6CRWb237CMSg+H/Iz3mMiU4XlE5Vgk5a0GU5/hIz3OerpG+xoeCRGvi6MMLv5r8SDKOlgNHUNWrlToCP9cyRoM7ZRdQWpoMIxyJQFQ7th535i9pqIhyoBmlSrIO9/ZzIyrb50W9X2XyD+RM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586567340; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=TrY1jEpQdmeerzJzD3CCV0km1Hz3Jl/lITTnvsAFSGI=; b=EYdeASf5a1HXZe6qvU8uFa/mm1p/dqI8yj+lRlpWkmSWozfPN3ayCSmRCnLgaUVy+3qbygWIw5ylr7nCpgWdTmLVtAJaOccNcpv+QDNUh0UZA33rCHdMweBf+hAEMxeOYCEUW+NXkxqzbs2d32sDuHl63DXzy+sC+/+8iW+/sS8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1586567340470486.7893737483515; Fri, 10 Apr 2020 18:09:00 -0700 (PDT) Received: from localhost ([::1]:47508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jN4dm-0001qP-Jc for importer@patchew.org; Fri, 10 Apr 2020 21:08:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34712) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jN4cs-0001JM-Qg for qemu-devel@nongnu.org; Fri, 10 Apr 2020 21:08:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jN4cq-0006BW-9G for qemu-devel@nongnu.org; Fri, 10 Apr 2020 21:08:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:44030) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jN4cq-0006Aa-4J for qemu-devel@nongnu.org; Fri, 10 Apr 2020 21:08:00 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 235CCAD41; Sat, 11 Apr 2020 01:07:55 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Bruce Rogers To: qemu-devel@nongnu.org Subject: [PATCH] module: increase dirs array size by one Date: Fri, 10 Apr 2020 19:07:46 -0600 Message-Id: <20200411010746.472295-1-brogers@suse.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, berrange@redhat.com, christian.ehrhardt@canonical.com, Bruce Rogers Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" With the module upgrades code change, the statically sized dirs array can now overflow. Increase it's size by one, according to the new maximum possible usage. Fixes: bd83c861c0 ("modules: load modules from versioned /var/run dir") Signed-off-by: Bruce Rogers --- util/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/module.c b/util/module.c index 5f7896870a..e48d9aacc0 100644 --- a/util/module.c +++ b/util/module.c @@ -177,7 +177,7 @@ bool module_load_one(const char *prefix, const char *li= b_name) char *version_dir; #endif const char *search_dir; - char *dirs[4]; + char *dirs[5]; char *module_name; int i =3D 0, n_dirs =3D 0; int ret; --=20 2.26.0