From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#74224: [PATCH][scratch/igc] pgtk: fix crashing bug in atimer used for checking scaling Date: Wed, 06 Nov 2024 11:36:29 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30933"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74224@debbugs.gnu.org To: Jeff Walsh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 06 11:38:51 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t8dR4-0007rz-JD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Nov 2024 11:38:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8dQe-0002vu-L3; Wed, 06 Nov 2024 05:38:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8dQX-0002vP-Mt for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 05:38:18 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8dQI-0003jA-Rx for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 05:38:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=61d7LyJfRIcJgAZrh7onaZe6Box73X4AWEUvxbdjaEU=; b=snhgtaUmeIk4IdTS/dZR5w/UlDdUsFKH98nxgWIGF/7X5qDWEDddrneFOtG2rWH++2BZ5zGMvFMsS3HXlF6J7cuN9gkLhrhdxT0/2xRsQJNmt+t+qK6QF9AZW0XgzyuBtRnZJrdhTVRIdIvE83n+1KFPoNQZZ66M5AzdhHfiq3AGcsjaF5a9oH9QoTDd3pMapuTw83NZ4HuHHFOskIcyatAkr2uSkTLapgJhMD8NmK/PBOzSmAq6onSAizXAxf+ZkKiPEK4DmgOhVfwz66vqdv0dC4ISyIaPrv50nAuDRTmviBTuWZwsMbc+4w6hrj3gIAM0NqaHvIRdu9+vG9GXNg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8dQI-00006q-Lp for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2024 05:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2024 10:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74224 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74224-submit@debbugs.gnu.org id=B74224.1730889453376 (code B ref 74224); Wed, 06 Nov 2024 10:38:02 +0000 Original-Received: (at 74224) by debbugs.gnu.org; 6 Nov 2024 10:37:33 +0000 Original-Received: from localhost ([127.0.0.1]:39756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8dPp-000060-GO for submit@debbugs.gnu.org; Wed, 06 Nov 2024 05:37:33 -0500 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:47432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8dPn-00005r-TN for 74224@debbugs.gnu.org; Wed, 06 Nov 2024 05:37:32 -0500 Original-Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-37d6ff1cbe1so4766118f8f.3 for <74224@debbugs.gnu.org>; Wed, 06 Nov 2024 02:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730889391; x=1731494191; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=61d7LyJfRIcJgAZrh7onaZe6Box73X4AWEUvxbdjaEU=; b=PgIDPaKC5VpZs9hcbOm3q5V8g7MWhplht+AQZV1HR2qnIAofiBpoIfshsbOMxuV2O2 UDHOKXV1zy0qlncBXlJ8Pt3etTdq7vdS6g6U97Ub8Ic1pTQBU0y0bymT1ZPxxVmknxyF Et/EkqT+Rd34oKCQAXBmndu6Z+kqqfegS7XztwNkgVQHnU3sxxyyHG03LPqfV9paz5xs Fx8Hv0x4m2W7u9d075XFq8nSGsFpZRpOjpJ7FAhoFkLx1jkAVG/Yo6+V4POKu6Btoyr/ SST87r4mkqr1tl8DLmzKv40hlq9N1wqvjKDddWZQcl524KyN1GBzX1HKJs2GUJypndSa PzRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730889391; x=1731494191; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=61d7LyJfRIcJgAZrh7onaZe6Box73X4AWEUvxbdjaEU=; b=h+oEQ+vMoeUfUF1WZ7p/c9VIqi27EGbOL3wmQ+DGRzw3bvq6kAl4y6SlIXugD/RZmN stZoPkVJposHc/9PG9EQz4w4STcrBQzEPy047bX4vdlfdv88YhixyR3d9CTSBp2CaV8A S/y+sfWrhgujfG5nRf5Iem64GFIV67QCNjXBf3GqYlzrUqEZyDoaEF+yzu4grpWUnJ2H FMeIXUA67UtvLMAX+cvor7pzqs17lL51qt41hvOOICfrsClOQArSc63LVkh1dzFbzvUh 6IJu2OgSjqnv8EzzYtg0lz+MyNxKQmt3au+Rwlz9DmvgNkEw4ZTRygY3omQD5VbTAtX5 zt/g== X-Gm-Message-State: AOJu0YyBiAD3CSNu5gJG+khNZSUSTXTeMcbmIaV3udmAqbijVCGYUIQc tfXE4T15lfrRts0cUqwAn/p7C4wO6838ojmQD2CS6gPeIUWy7HmkuhfLZQ== X-Google-Smtp-Source: AGHT+IHXyWLtRABsqsvT6lH4yk9JUNydfEzfNIAoPWYB68vgv6VCjkG65CbgwIDFrnH11CCHPDgLJw== X-Received: by 2002:a05:6000:42c2:b0:37d:f4b:b6ab with SMTP id ffacd0b85a97d-381bea29202mr15243135f8f.59.1730889390739; Wed, 06 Nov 2024 02:36:30 -0800 (PST) Original-Received: from pro2 (pd9e36633.dip0.t-ipconnect.de. [217.227.102.51]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c1168afcsm18699370f8f.91.2024.11.06.02.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 02:36:30 -0800 (PST) In-Reply-To: (Jeff Walsh's message of "Wed, 6 Nov 2024 20:30:02 +1100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294945 Archived-At: Jeff Walsh writes: > #ifdef WINDOWSNT > #define raise(s) w32_raise(s) > @@ -132,7 +133,13 @@ start_atimer (enum atimer_type type, struct timespec timestamp, > free_atimers = t->next; > } > else > - t = xmalloc (sizeof *t); > + { > +#ifdef HAVE_MPS > + t = igc_xzalloc_ambig (sizeof *t); > +#else > + t = xmalloc (sizeof *t); > +#endif > + } > > /* Fill the atimer structure. */ > memset (t, 0, sizeof *t); On second thought, and I don't know if it's relevant, do we need to igc_xfree that?