* [PATCH] Fix buffer overflow in xenconsoled
@ 2005-08-30 21:57 Anthony Liguori
2005-08-31 8:44 ` Christian Limpach
0 siblings, 1 reply; 2+ messages in thread
From: Anthony Liguori @ 2005-08-30 21:57 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
Appears to be a typo.
Christian's watch changes threw me off a bit as I had been pursuing
another route to fix the same problems. This bug is still valid though.
Regards,
Anthony Liguori
Signed-off-by: Anthony Liguori
[-- Attachment #2: 6483_consoled.diff --]
[-- Type: text/x-patch, Size: 671 bytes --]
# HG changeset patch
# User Anthony Liguori <aliguori@us.ibm.com>
# Node ID 444e4fa43bf1123873cddecff51d9fe593271eae
# Parent fe6c5ecea53aabedc6b53988da25910e108eafe9
Fix overflow in reading from console
diff -r fe6c5ecea53a -r 444e4fa43bf1 tools/console/daemon/io.c
--- a/tools/console/daemon/io.c Tue Aug 30 22:01:01 2005
+++ b/tools/console/daemon/io.c Tue Aug 30 22:05:28 2005
@@ -353,7 +353,7 @@
(struct ring_head *)(dom->page + PAGE_SIZE/2);
int i;
- len = read(dom->tty_fd, msg, MAX(XENCONS_SPACE(inring), sizeof(msg)));
+ len = read(dom->tty_fd, msg, MIN(XENCONS_SPACE(inring), sizeof(msg)));
if (len < 1) {
close(dom->tty_fd);
dom->tty_fd = -1;
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-31 8:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-30 21:57 [PATCH] Fix buffer overflow in xenconsoled Anthony Liguori
2005-08-31 8:44 ` Christian Limpach
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.