Hello,

In vm_map.c, in the vm_map_insert(...) function there is the following 
piece of code which checks if the addresses supplied to the function are 
valid:

**
if ((start < map->min_offset) || (end > map->max_offset) ||
        (start >= end))
        return (KERN_INVALID_ADDRESS);
**

Specifically, I am interested in the final comparison. Is it possible 
that start == end could ever be correct? Do zero sized entries ever get 
inserted? (I don't see why you would ever wish to do this, please 
explain it to me if there is a reason).

Normally I'd submit a PR about this but since its not an area of the 
code I am very familiar with I thought I'd ask. I would also supply a 
patch but for a one character change it seems pretty silly.

Thanks,
--
Dominic


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to