From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yabBKaKi2GpKeQIAWB0awg (envelope-from ) for ; Wed, 21 Oct 2026 07:31:46 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aHxQQdaD; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A7C801E051; Wed, 21 Oct 2026 07:31:46 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 204241E047 for ; Wed, 21 Oct 2026 07:31:46 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 562854BA23EA for ; Wed, 21 Oct 2026 11:31:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 562854BA23EA Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aHxQQdaD Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by sourceware.org (Postfix) with ESMTPS id DDB9D4BA23DD for ; Wed, 21 Oct 2026 11:30:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDB9D4BA23DD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DDB9D4BA23DD Authentication-Results: sourceware.org; arc=none smtp.remote-ip=192.198.163.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792582260; cv=none; b=TxMNlvrdHI6ggUD0NTl3HbRc9NLx0IePZUifG1/36af0+gzbIysxSarVdEQLyg7ly6LnPSIk+YuR91ECF/+Ngt74zA7uE986Bq2+uOPPvkT/IAwEXe/2rBqNyOpm+kRrEAu6MnDG5osCXKlQ0mFZnp0xE/u8WhSXdR9aCqdEfIE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792582260; c=relaxed/simple; bh=I0x94HSVLEPaEThkSUHaExf+OxbxryMHCHTyplXqo/o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CbzZVyj/nGqAiZgj5FsEcGTXY8aQRhWEOyhrv8KNSmBbpCFgn239ciB6CI58yakugW3hp3cXCs6Fqgs/NreOdDrwyFZhCr5zojxjnbl6CrNNoxmPvZhZXtDH8p//Z5HRGjhua+wZ4rjZUcZHfYx/lIyN2Qt91hpW7+UqQkAkRJ0= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aHxQQdaD DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDB9D4BA23DD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1792582254; x=1824118254; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=I0x94HSVLEPaEThkSUHaExf+OxbxryMHCHTyplXqo/o=; b=aHxQQdaDLSa2CusB4yUUDBVA2swvY1xS39qq10EY/W6fzMQlQzq2ZpYe +9BWnJz6c8CV0mPNOd6zzqECQUgnRBXxyadjM9QSjzzW2hvOTqIE4+KjE ygUJuJskbHEEE6x2Rt8zMyUmG9u6/M/SBwuvKWn0tlEhdg9EH4xSvrZ2s n+2vR5c3pMjj2O9qgS/hbCn/RSJ+AvrFuktgz1DugnTPgswaHSCmYsQuI 6/Bhw6+dcNzq7JqtWQpEMFl1llt3yyDm/Rf3jt4rU2iriDPgWHim2wXix lMPt+6oR2QXjpW0QccGJBGjhMeVDoq+Jk2ad/uKMDqRF12e7UNILAaZp/ w==; X-CSE-ConnectionGUID: LcWR4aVVSH686CWDPOGKYw== X-CSE-MsgGUID: epEkBpv6RLqpVGJNK5YhVA== X-IronPort-AV: E=McAfee;i="6800,10657,11941"; a="1194831" X-IronPort-AV: E=Sophos;i="6.27,170,1787036400"; d="scan'208";a="1194831" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2026 04:30:52 -0700 X-CSE-ConnectionGUID: w0T5eoOxS8CwWKUW0RcMMw== X-CSE-MsgGUID: klX8khL5SXS2Wr2dMzmUcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,170,1787036400"; d="scan'208";a="3090188" Received: from dut1048pvc.igk.intel.com (HELO localhost) ([10.211.177.228]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2026 04:30:52 -0700 From: Stephan Rohr To: gdb-patches@sourceware.org Cc: tom@tromey.com Subject: [PATCH v2 0/1] gdb: fix overflow caused by value_print_array_elements Date: Wed, 21 Oct 2026 11:30:44 +0000 Message-ID: <20261021113045.171468-1-stephan.rohr@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: "Rohr, Stephan" Hi Tom, all, thanks for the feedback. I updated the testcase accordingly and added a case with stride smaller than the element size. v1 was posted here: https://sourceware.org/pipermail/gdb-patches/2026-October/231191.html Thanks Stephan Rohr, Stephan (1): gdb: fix overflow caused by value_print_array_elements gdb/testsuite/gdb.dwarf2/arr-stride-gap.exp | 106 ++++++++++++++++++++ gdb/valprint.c | 12 ++- 2 files changed, 115 insertions(+), 3 deletions(-) create mode 100644 gdb/testsuite/gdb.dwarf2/arr-stride-gap.exp -- 2.43.0 ________________________________________ Intel Deutschland GmbH Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany Tel: +49 (89) 99143-0 www.intel.de Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman Chairperson of the Supervisory Board: Sonja Pierer Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.