summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 01:03:09 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 01:03:09 +0200
commit04519af27ba15ea756f621d278919e2e3b660dfb (patch)
tree76ac4d4c1650610ed8339ad44fec8fe6e3e24e14
parent3f27b87f446e26598b53e5cc20f968445c09843c (diff)
Fix db kernel memory access
i386/i386/db_interface.c (db_read_bytes): Also check addr against VM_MAX_KERNEL_ADDRESS.
-rw-r--r--i386/i386/db_interface.c2
1 files changed, 1 insertions, 1 deletions
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) {