qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] Fix -nographic heap corruption


From: Ed Swierk
Subject: [Qemu-devel] [PATCH] Fix -nographic heap corruption
Date: Sun, 30 Apr 2006 20:06:08 -0700

A bug in console.c causes heap corruption when qemu is started without
a graphical console (-nographic). In this case, the console height and
width are both 0, resulting in allocation of a zero-length cells
array.

Heap corruption is caused by code that assumes the cells array always
has at least one element. The attached patch avoids this problem
simply by making the cells array one byte larger than necessary, i.e.
length 1 in the -nographic case.

--Ed

Attachment: qemu-zero-width-console.patch
Description: Text Data


reply via email to

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