* mmap.cc (munmap): Check that mmap and munmap length match.
This commit is contained in:
parent
e1a993d549
commit
95ec0f241f
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Nov 27 21:09:50 2000 Kelley Cook <kelley.cook@home.com>
|
||||||
|
|
||||||
|
* mmap.cc (munmap): Check that mmap and munmap length match.
|
||||||
|
|
||||||
Tue Nov 28 18:08:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Tue Nov 28 18:08:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.cc (fhandler_disk_file::open): Check for buggy CreateFile
|
* fhandler.cc (fhandler_disk_file::open): Check for buggy CreateFile
|
||||||
|
|
|
@ -288,11 +288,10 @@ munmap (caddr_t addr, size_t len)
|
||||||
list *l = mmapped_areas->lists[it];
|
list *l = mmapped_areas->lists[it];
|
||||||
if (l != 0)
|
if (l != 0)
|
||||||
{
|
{
|
||||||
int li;
|
for (int li = 0; li < l->nrecs; ++li)
|
||||||
for (li = 0; li < l->nrecs; ++li)
|
|
||||||
{
|
{
|
||||||
mmap_record rec = l->recs[li];
|
mmap_record rec = l->recs[li];
|
||||||
if (rec.get_address () == addr)
|
if (rec.get_address () == addr && rec.get_size () == len)
|
||||||
{
|
{
|
||||||
int fd = l->fd;
|
int fd = l->fd;
|
||||||
fhandler_disk_file fh_paging_file (NULL);
|
fhandler_disk_file fh_paging_file (NULL);
|
||||||
|
|
Loading…
Reference in New Issue