mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2026-01-01 22:25:42 +03:00
rose: assert that program offset is sane
This commit is contained in:
committed by
Matthew Barr
parent
061068a260
commit
9e0ec02ac9
@@ -830,7 +830,7 @@ hwlmcb_rv_t roseRunProgram(const struct RoseEngine *t,
|
||||
char skip_mpv_catchup) {
|
||||
DEBUG_PRINTF("program=%u, offsets [%llu,%llu]\n", programOffset, som, end);
|
||||
|
||||
assert(programOffset);
|
||||
assert(programOffset >= sizeof(struct RoseEngine));
|
||||
assert(programOffset < t->size);
|
||||
|
||||
const char *pc_base = getByOffset(t, programOffset);
|
||||
|
||||
Reference in New Issue
Block a user