From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#31545: xwidget-webkit-execute-script does not protect script against GC Date: Mon, 21 May 2018 14:22:53 +0200 Message-ID: <8736yl19lu.fsf@igel.home> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526905345 28608 195.159.176.226 (21 May 2018 12:22:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 May 2018 12:22:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: 31545@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 21 14:22:21 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKjpU-0007Ku-Nz for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 May 2018 14:22:20 +0200 Original-Received: from localhost ([::1]:50404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKjrY-0004Vg-S7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 May 2018 08:24:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKjrC-0004Fr-8X for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 08:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKjr9-0001Be-1q for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 08:24:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34678) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fKjr8-0001BS-UW for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 08:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fKjr8-00066f-Lw for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 08:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 May 2018 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152690539023409 (code B ref -1); Mon, 21 May 2018 12:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 May 2018 12:23:10 +0000 Original-Received: from localhost ([127.0.0.1]:42575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKjqI-00065V-1N for submit@debbugs.gnu.org; Mon, 21 May 2018 08:23:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKjqE-00065H-S6 for submit@debbugs.gnu.org; Mon, 21 May 2018 08:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKjq9-0000HK-5B for submit@debbugs.gnu.org; Mon, 21 May 2018 08:23:01 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fKjq9-0000HG-1x for submit@debbugs.gnu.org; Mon, 21 May 2018 08:23:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKjq8-0003Ua-1A for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 08:23:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKjq4-0000EO-SJ for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 08:23:00 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:32980) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fKjq4-0000Co-LO for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 08:22:56 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 40qHwt51rsz1qvCY for ; Mon, 21 May 2018 14:22:54 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 40qHwt4xL1z1qvT9 for ; Mon, 21 May 2018 14:22:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-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 A8PKlIhLDd8S for ; Mon, 21 May 2018 14:22:54 +0200 (CEST) X-Auth-Info: WTTxy3kSmSr4zDo3V6UtWw4+7y8xglzmuiH+whh4Sfal1lz7dM+HfqHh7zmvUDYO Original-Received: from localhost (ppp-188-174-150-148.dynamic.mnet-online.de [188.174.150.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Mon, 21 May 2018 14:22:54 +0200 (CEST) Original-Received: by localhost (Postfix, from userid 1000) id 8569F2C2696; Mon, 21 May 2018 14:22:53 +0200 (CEST) X-Yow: It don't mean a THING if you ain't got that SWING!! X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146345 Archived-At: The script argument to xwidget-webkit-execute-script is not protected against GC. Since strings may be relocated by GC the pointer passed to webkit_web_view_run_javascript may become invalid any time during the asynchronous execution. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."