a small revers for bcheck.o changes (d80593bc4d
)
replacing (addr > e->size) with (addr >= e->size) was correct only in one place, a second replacing is reversed by this commit.
This commit is contained in:
parent
db08122d31
commit
96debc72f8
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ void * FASTCALL __bound_ptr_indir ## dsize (void *p, size_t offset) \
|
||||||
addr = (size_t)p - e->start; \
|
addr = (size_t)p - e->start; \
|
||||||
} \
|
} \
|
||||||
addr += offset + dsize; \
|
addr += offset + dsize; \
|
||||||
if (addr >= e->size) \
|
if (addr > e->size) \
|
||||||
return INVALID_POINTER; /* return an invalid pointer */ \
|
return INVALID_POINTER; /* return an invalid pointer */ \
|
||||||
return p + offset; \
|
return p + offset; \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue