diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-14 01:03:09 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-14 01:03:09 +0200 |
commit | 04519af27ba15ea756f621d278919e2e3b660dfb (patch) | |
tree | 76ac4d4c1650610ed8339ad44fec8fe6e3e24e14 | |
parent | 3f27b87f446e26598b53e5cc20f968445c09843c (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.c | 2 |
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) { |