After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 426541 - crash on IRM escape code
crash on IRM escape code
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.16.x
Other Linux
: Normal critical
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-05 09:49 UTC by Sebastien Bacher
Modified: 2007-04-05 10:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Fix inserting character not to add unitialised cells to the end of the row (2.61 KB, patch)
2007-04-05 10:46 UTC, Chris Wilson
committed Details | Review

Description Sebastien Bacher 2007-04-05 09:49:21 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/vte/+bug/103095

"This python program:

import sys

sys.stdout.write("\x1b[4h ")

will reliably crash any VTE-based terminal.

This bug is new in Feisty. Neither edgy nor dapper have the problem.
...
more information - this was introduced as of 1:0.16.0svn20070403-0ubuntu1 - downgrading to 0.16.0-0ubuntu4 fixes the issue."
Comment 1 Chris Wilson 2007-04-05 10:46:12 UTC
Created attachment 85841 [details] [review]
Fix inserting character not to add unitialised cells to the end of the row
Comment 2 Chris Wilson 2007-04-05 10:46:39 UTC
r1865: 2007-04-05  Chris Wilson  <chris@chris-wilson.co.uk>

	Bug 426541 – crash on IRM escape code

	* src/vte.c (vte_terminal_ensure_cursor),
	(_vte_terminal_insert_char):
		Mishandled insertion - we always extended the row for
		inserts even though the row would automagically extend
		for the inserted cells. This lead to referencing
		uninitialised cells at the end of the row during painting.
	* src/vte.c (vte_terminal_draw_rows):
		Retrieve the cell before inspecting it.