Displaying 1 result from an estimated 1 matches for "gettypevaluelist".
2010 Apr 21
1
[LLVMdev] Bufer overrun in getValueTypeList()
Hello,
I've observed in some tests that getValueTypeList() is sometimes called with type MVT::iPTR. There is a discrepancy between the size of the array VTs and the use in getTypeValueList(). The array is allocated with space for elements up to LAST_VALUE_TYPE and iPTR is defined after it. The enumerator value of iPTR is between LAST_VALUE_TYPE and LastSimpleValueType. For this reason the check VT.isExtended() fails and the value is looked up in VTs triggering an out of bounds acces...