From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68421: Possible use after free in w32notify.c Date: Sat, 13 Jan 2024 11:12:31 +0200 Message-ID: <83jzodha0w.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23462"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68421@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 13 10:14:15 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 1rOa5n-0005vG-Iw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Jan 2024 10:14:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOa5e-00053f-JB; Sat, 13 Jan 2024 04:14:06 -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 1rOa5c-00053V-AA for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 04:14:04 -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 1rOa5c-00077T-1v for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 04:14:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOa5a-0002Ar-GA for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 04:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jan 2024 09:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68421 X-GNU-PR-Package: emacs Original-Received: via spool by 68421-submit@debbugs.gnu.org id=B68421.17051371938287 (code B ref 68421); Sat, 13 Jan 2024 09:14:02 +0000 Original-Received: (at 68421) by debbugs.gnu.org; 13 Jan 2024 09:13:13 +0000 Original-Received: from localhost ([127.0.0.1]:38379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOa4n-00029b-6M for submit@debbugs.gnu.org; Sat, 13 Jan 2024 04:13:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOa4l-00029O-2w for 68421@debbugs.gnu.org; Sat, 13 Jan 2024 04:13:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOa4h-0006cb-0u; Sat, 13 Jan 2024 04:13:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=id5/x97R7nTuBgeABLyyDRoIVaqwzoZwopMxbZxyP0k=; b=A10sWjq4cBJ4 7kfB02ULrxiYty/Q942NDFIoYx+OF2wt7tZbZU4y1WtmpdPU9jGmkwjEawtwm9CY7tSYX/1PGqee6 9YK8AQN7z1IxEKVgLYrDcF9xyIZ47cdx17quPhZyHrkv9Px+PRsgoB6EdHQrqECz7KKSqyJkEVJU8 It6tvASULPW9Eka8LASmf2w02dfXZWCbesCTL4TqrndZSAKrInO6/nmBCq3CfM48i9KodJRLr6Qk9 ABCwklQf3wJlMzDqCTp6XGFW+cGcFQEVk8T4tIqaPNOsywAt2BnSRgnfXhff06hDUV+wauytsdlYL fy9mZIfL6zseWrQLiNaM0Q==; In-Reply-To: (message from Stefan Kangas on Sat, 13 Jan 2024 01:49:36 -0600) 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:278105 Archived-At: > From: Stefan Kangas > Date: Sat, 13 Jan 2024 01:49:36 -0600 > > Could someone familiar with w32notify.c look over the attached patch? > > It looks like we are trying to dereference NULL in add_watch, and > returning an already freed value from start_watching. Feel free to install on master, and thanks.