Fix integer overflow in setListPointer size calculation
This commit is contained in:
parent
b1eadaee6c
commit
529a3daa6f
1 changed files with 1 additions and 1 deletions
|
@ -1035,7 +1035,7 @@ final class WireHelpers {
|
|||
};
|
||||
|
||||
static SegmentBuilder setListPointer(SegmentBuilder segment, CapTableBuilder capTable, int refOffset, ListReader value) {
|
||||
int totalSize = roundBitsUpToWords(value.elementCount * value.step);
|
||||
int totalSize = roundBitsUpToWords((long) value.elementCount * value.step);
|
||||
|
||||
if (value.step <= Constants.BITS_PER_WORD) {
|
||||
//# List of non-structs.
|
||||
|
|
Loading…
Reference in a new issue