<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <span class="Apple-style-span" style="border-collapse: separate;
      color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; orphans: 2; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; font-size: medium;"><span
        class="Apple-style-span" style="font-family: Verdana,sans-serif;
        font-size: small;">
        <pre class="bz_comment_text" id="comment_text_0" style="font-size: medium; font-family: monospace; white-space: pre-wrap; width: 50em;">I see a crash in LiveVariables::runOnMachineFunction where it transfers the dead/kill information to machine instructions. The loop accesses memory past the end of an array.

This crash occurs only on Windows (VS2008 or VS2010) and only with Release or RelWithDebInfo builds. It does not occur in Debug builds, nor on Mac OS X or Linux.

I have attached a fix (w/ test case). I modified the loop to work like other similar iterations in the LiveVariables class, and to use the "getVarInfo()" method, which will grow the array in question as necessary, preventing the out-of-bounds access.

-Sean

</pre>
      </span></span>
  </body>
</html>