GenTreeAddrMode
has implicit truncation for its gtOffset
field #86609
Open
Description
opened on May 22, 2023
The constructor takes in and stores a ssize_t offset
: https://github.com/dotnet/runtime/blob/main/src/coreclr/jit/gentree.h#L7089
However, it returns an int Offset()
which may result in implicit truncation and loss of data: #86400
We should likely change the signature to take in an int
and ensure that all taken offsets are in range.
Activity