eclipse / omr

Eclipse OMR™ Cross platform components for building reliable, high performance language runtimes
http://www.eclipse.org/omr
Other
933 stars 392 forks source link

Initialize the array variable in generateArrayAddressTree to null #7389

Closed rmnattas closed 1 week ago

rmnattas commented 1 week ago

The code populates the TR::Node* array variable if a non-zero offset exist.

The variable is passed to generateArrayElementAddressTrees which depends on if the variable is null to indicate a zero offset.

Given that the variable is not initialized to null a value may be passed causing wrong generated trees.

vijaysun-omr commented 1 week ago

Jenkins build all