Detected as part of #54580
The mac parameter is assigned the address of the defMAC local at line 6142 of morph.cpp.
|
// NULL mac means we encounter the GT_FIELD first. This denotes a dereference of the field, |
|
// and thus is equivalent to a MACK_Ind with zero offset. |
|
MorphAddrContext defMAC(MACK_Ind); |
|
if (mac == nullptr) |
|
{ |
|
mac = &defMAC; |
|
} |
The defMAC local goes out of scope at line 6313.
The mac parameter is passed down to fgMorphSmpOp at line 6513.
|
GenTree* result = fgMorphSmpOp(tree, mac); |
The mac parameter in fgMorphSmpOp dereferences the mac pointer to the out-of-scope local at line 12963
|
if (subMac1 == nullptr || subMac1->m_kind == MACK_Ind) |
Detected as part of #54580
The
macparameter is assigned the address of thedefMAClocal at line 6142 of morph.cpp.runtime/src/coreclr/jit/morph.cpp
Lines 6137 to 6143 in d7a5b89
The
defMAClocal goes out of scope at line 6313.The
macparameter is passed down tofgMorphSmpOpat line 6513.runtime/src/coreclr/jit/morph.cpp
Line 6513 in d7a5b89
The
macparameter infgMorphSmpOpdereferences themacpointer to the out-of-scope local at line 12963runtime/src/coreclr/jit/morph.cpp
Line 12963 in d7a5b89