qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] Cocoa: fix crash when pressing dead keys in the mon


From: Joachim Henke
Subject: [Qemu-devel] [PATCH] Cocoa: fix crash when pressing dead keys in the monitor
Date: 23 May 2006 15:08 UT

Concerning the Cocoa front-end there is a bug, when typing in the monitor and pressing a dead key. QEMU quits, and all unsaved data in the guest os is lost:

qemu[193] Exception raised during posting of notification. Ignored. exception: *** -[NSCFString characterAtIndex:]: Range or index out of bounds

[event characters] returns an empty string for dead keys; so calling [[event characters] characterAtIndex:0] will raise an NSRangeException that crashes qemu. The attached patch fixes this bug, and it also adds support for the keys Home, End, and Delete in the monitor.

--
Joachim Henke
http://he-jo.net/

Attachment: cocoa-monitor.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]