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 418588 - Invalid read when drawing preedit cursor
Invalid read when drawing preedit cursor
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.15.x
Other Linux
: Normal critical
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-15 14:25 UTC by Chris Wilson
Modified: 2007-03-16 10:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
No need to draw the cursor at the end as it doesn't exist (526 bytes, patch)
2007-03-15 14:27 UTC, Chris Wilson
none Details | Review

Description Chris Wilson 2007-03-15 14:25:19 UTC
vte_terminal_paint() currently tries to access beyond the end of the string inorder to draw the preedit cursor - which is blank.

This was first reported in Launchpad: https://bugs.launchpad.net/ubuntu/+source/vte/+bug/89524
Comment 1 Chris Wilson 2007-03-15 14:27:40 UTC
Created attachment 84653 [details] [review]
No need to draw the cursor at the end as it doesn't exist
Comment 2 Chris Wilson 2007-03-16 10:14:22 UTC
r1837: 2007-03-16  Chris Wilson  <chris@chris-wilson.co.uk>

	Bug 418588 – Invalid read when drawing preedit cursor

	* src/vte.c (vte_terminal_paint):
		No need to read what is drawn and furthermore isn't allocated.