mirror of
https://github.com/frida/tinycc
synced 2024-12-26 23:09:41 +03:00
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
@ -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; \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user