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:
seyko 2015-03-30 06:15:47 +03:00
parent db08122d31
commit 96debc72f8

View File

@ -205,7 +205,7 @@ void * FASTCALL __bound_ptr_indir ## dsize (void *p, size_t offset) \
addr = (size_t)p - e->start; \
} \
addr += offset + dsize; \
if (addr >= e->size) \
if (addr > e->size) \
return INVALID_POINTER; /* return an invalid pointer */ \
return p + offset; \
}