From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Saalmann, Harald" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: w32reg.c string search termination Date: Wed, 22 Aug 2007 14:08:10 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187792366 31642 80.91.229.12 (22 Aug 2007 14:19:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2007 14:19:26 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 22 16:19:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INr3I-0001GW-Hk for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2007 16:19:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INr3F-0001Tg-C8 for ged-emacs-devel@m.gmane.org; Wed, 22 Aug 2007 10:19:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INp0Z-0005sh-E9 for emacs-devel@gnu.org; Wed, 22 Aug 2007 08:08:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INp0V-0005ou-Ki for emacs-devel@gnu.org; Wed, 22 Aug 2007 08:08:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INp0V-0005ol-Fg for emacs-devel@gnu.org; Wed, 22 Aug 2007 08:08:19 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INp0U-0000d3-W4 for emacs-devel@gnu.org; Wed, 22 Aug 2007 08:08:19 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INp4V-0003z4-4d for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 08:12:27 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1INp0S-0000cl-Im for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 08:08:17 -0400 Original-Received: from mxs1.siemens.at ([194.138.12.131]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1INp0R-0000bf-T8 for emacs-pretest-bug@gnu.org; Wed, 22 Aug 2007 08:08:16 -0400 Original-Received: from vies1kbx.sie.siemens.at ([158.226.129.82]) by mxs1.siemens.at with ESMTP id l7MC8Avf025412 for ; Wed, 22 Aug 2007 14:08:10 +0200 Original-Received: from nets139a.ww300.siemens.net ([158.226.129.98]) by vies1kbx.sie.siemens.at (8.12.11.20060308/8.12.1) with ESMTP id l7MC88IS001735 for ; Wed, 22 Aug 2007 14:08:10 +0200 Original-Received: from nets13ga.ww300.siemens.net ([158.226.250.76]) by nets139a.ww300.siemens.net with Microsoft SMTPSVC(6.0.3790.3959); Wed, 22 Aug 2007 14:08:07 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: w32reg.c string search termination Thread-Index: AcfktRkH/wbco05uQ4OTL1oVkOQk7g== X-OriginalArrivalTime: 22 Aug 2007 12:08:07.0247 (UTC) FILETIME=[19909DF0:01C7E4B5] X-purgate: clean X-purgate: This mail is considered clean X-purgate-type: clean X-purgate-Ad: Checked for Spam by eleven - eXpurgate www.eXpurgate.net X-purgate-ID: 149917::070822140810-4AFBCBB0-21469942/0-0/0-15 X-purgate-size: 1634/0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 22 Aug 2007 10:19:14 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76959 gmane.emacs.pretest.bugs:19580 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. =20 Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. =20 Please describe exactly what actions triggered the bug and the precise symptoms of the bug: =20 In file src/w32reg.c, line 35: The directive #define SYSTEM_DEFAULT_RESOURCES ... doesn't close the string literal with two adjacent NUL characters, which is needed by function w32_get_rdb_resource() called from line 142 to terminate the string lookup correctly. =20 (It is unlikely that this ever triggered any noticeable bad behavor.) =20 [Appending a "\0" will probably do it. I haven't tested anything,=20 because I don't run Windoze on my own machines, and on this one I even have to use M$ Outlock to ship this mail out...] =20 If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file d:/Program_Files/ntemacs22/etc/DEBUG for instructions. =20 In GNU Emacs 22.0.92.1 (i386-mingw-nt5.1.2600) of 2007-01-01 on DTOP X server distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.1) --cflags -O2 -g0 -march=3Di386 -mtune=3Di686 -pipe -IC:/gnuwin32/include_emacs -IC:/gnuwin32/lib -IC:/gnuwin32/src --ldflags -s ' =20 Important settings: =20 Major mode: c =20 Minor modes in effect: =20 Recent input: =20 Recent messages: Loading emacsbug...done Quit