From 04519af27ba15ea756f621d278919e2e3b660dfb Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 14 Oct 2009 01:03:09 +0200 Subject: Fix db kernel memory access i386/i386/db_interface.c (db_read_bytes): Also check addr against VM_MAX_KERNEL_ADDRESS. --- i386/i386/db_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i386') diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c index bd43b1f..29f03c9 100644 --- a/i386/i386/db_interface.c +++ b/i386/i386/db_interface.c @@ -311,7 +311,7 @@ db_read_bytes( unsigned kern_addr; src = (char *)addr; - if (addr >= VM_MIN_KERNEL_ADDRESS || task == TASK_NULL) { + if ((addr >= VM_MIN_KERNEL_ADDRESS && addr < VM_MAX_KERNEL_ADDRESS) || task == TASK_NULL) { if (task == TASK_NULL) task = db_current_task(); while (--size >= 0) { -- cgit v1.2.3