[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#462621: marked as done (xterm: setting TAB starting from column 320 or later can cause segmentation fault)



Your message dated Tue, 19 Feb 2008 21:02:15 +0000
with message-id <E1JRZbT-00010j-P0@ries.debian.org>
and subject line Bug#462621: fixed in xterm 232-1
has caused the Debian Bug report #462621,
regarding xterm: setting TAB starting from column 320 or later can cause segmentation fault
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
462621: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462621
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: xterm
Version: 231-1
Severity: important

The TAB positions are stored in a bitmap array, which is defined in ptyx.h, line
1961. The size of this array is TAB_ARRAY_SIZE which is defined to be 10. Thus,
Tabs array consists of ten 'unsigned int', tabs.c stores 32 positions in one
position. This means that the all together 320 column position can be stored
in the Tabs array.

However, if the xterm window has more than 320 columns overindexing can happen.
This will lead to "Segmentation fault".

Steps to reproduce:

1. open an xterm window

2. Copy, paste and execute the following escape sequence, which will set
the font size to "unreadable" size:

echo -e -n "\e]50;#1\0"

3. Copy, paste and execute the following escape sequence, which will resize
the xterm window to the maximum possible size:

echo -e "\e[9;1t"

4. Copy, paste and execute the following loop which will clear the TAB stops
at each possible column:

for i in $(seq 0 1024); do echo -e -n "\eHx"; done

Actual result: "Segmentation fault"

Expected result: the overindexing is not possible

My screen resolution is 1024x768.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.23 (PREEMPT)
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash

Versions of packages xterm depends on:
ii  libc6                     2.7-5          GNU C Library: Shared libraries
ii  libfontconfig1            2.5.0-2        generic font configuration library
ii  libice6                   2:1.0.4-1      X11 Inter-Client Exchange library
ii  libncurses5               5.6+20071215-1 Shared libraries for terminal hand
ii  libsm6                    2:1.0.3-1+b1   X11 Session Management library
ii  libx11-6                  2:1.0.3-7      X11 client-side library
ii  libxaw7                   2:1.0.4-1      X11 Athena Widget library
ii  libxext6                  1:1.0.3-2      X11 miscellaneous extension librar
ii  libxft2                   2.1.12-2       FreeType-based font drawing librar
ii  libxmu6                   1:1.0.3-1      X11 miscellaneous utility library
ii  libxt6                    1:1.0.5-3      X11 toolkit intrinsics library
ii  xbitmaps                  1.0.1-2        Base X bitmaps

Versions of packages xterm recommends:
ii  xutils                      1:7.1.ds.3-1 X Window System utility programs

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: xterm
Source-Version: 232-1

We believe that the bug you reported is fixed in the latest version of
xterm, which is due to be installed in the Debian FTP archive:

xterm_232-1.diff.gz
  to pool/main/x/xterm/xterm_232-1.diff.gz
xterm_232-1.dsc
  to pool/main/x/xterm/xterm_232-1.dsc
xterm_232-1_i386.deb
  to pool/main/x/xterm/xterm_232-1_i386.deb
xterm_232.orig.tar.gz
  to pool/main/x/xterm/xterm_232.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 462621@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julien Cristau <jcristau@debian.org> (supplier of updated xterm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 19 Feb 2008 21:20:08 +0100
Source: xterm
Binary: xterm
Architecture: source i386
Version: 232-1
Distribution: unstable
Urgency: low
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Changed-By: Julien Cristau <jcristau@debian.org>
Description: 
 xterm      - X terminal emulator
Closes: 404079 459816 459817 460545 462621 464947
Changes: 
 xterm (232-1) unstable; urgency=low
 .
   * New upstream release.
     + corrected logic in a font-cache used for reverse-video
       (closes: #404079)
     + allow building with configure options --disable-ansi-color and
       --disable-leaks (closes: #459817)
     + allow building with configure options --enable-wide-chars and
       --disable-c1-print (closes: #459816)
     + add pointerMode resource to control whether and when the pointer cursor
       is hidden as the user types; also fix it so it's really hidden instead
       of showing a black dot (closes: #460545)
     + add limit-checks to tabs.c, increase maximum column for setting
       tab-stops from 320 to 1024 (closes: #462621)
   * Set pointerMode to "never" by default, to restore pre-230 behaviour.
     Document that change in xterm.man (new patch 902_pointermode_never.diff).
   * Look for luit in /usr/bin, not /usr/X11R6/bin.
   * Refresh patches.
   * debian/control: luit is in x11-utils now, update Recommends and
     Description.
   * Add Vcs-* and Homepage fields in debian/control.  Thanks, Joey Hess!
     (closes: #464947)
Files: 
 28bc10a50cf0df435fbad0cc3277dd2c 974 x11 optional xterm_232-1.dsc
 47cc1f1642189c8ae272b19675e86db4 853200 x11 optional xterm_232.orig.tar.gz
 2114b0eda13c362d2dc8067e5517894e 62016 x11 optional xterm_232-1.diff.gz
 437cb55b5ff837a7922f040e4a2d9aa4 463984 x11 optional xterm_232-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHuzuDmEvTgKxfcAwRAs3+AJ94L4zgXEqcUNtA6M0egohxae/1uwCgkNoY
GpAmy50RG8gCFGPJLSJ/1oU=
=ZcC1
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: