mirror of
https://github.com/corda/corda.git
synced 2025-02-07 19:40:25 +00:00
avoid indexing past the end of the array in makeSimpleFrameMapTable
This commit is contained in:
parent
562e1e10a8
commit
dae7b68d5c
@ -4744,8 +4744,10 @@ makeSimpleFrameMapTable(MyThread* t, Context* context, uint8_t* start,
|
||||
assert(t, context->traceLogCount + ceiling((i + 1) * mapSize, 32)
|
||||
<= intArrayLength(t, table));
|
||||
|
||||
copyFrameMap(&intArrayBody(t, table, context->traceLogCount), p->map,
|
||||
mapSize, i * mapSize, p, 0);
|
||||
if (mapSize) {
|
||||
copyFrameMap(&intArrayBody(t, table, context->traceLogCount), p->map,
|
||||
mapSize, i * mapSize, p, 0);
|
||||
}
|
||||
}
|
||||
|
||||
return table;
|
||||
|
Loading…
x
Reference in New Issue
Block a user