<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - windows x64 exception data is innacurate"
href="https://bugs.llvm.org/show_bug.cgi?id=47459">47459</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>windows x64 exception data is innacurate
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jerome_witmann@symantec.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23935" name="attach_23935" title="fix for wrong $ip2state records.">attachment 23935</a> <a href="attachment.cgi?id=23935&action=edit" title="fix for wrong $ip2state records.">[details]</a></span>
fix for wrong $ip2state records.
Hi,
While I was scrutinizing some generated code inside IDA PRO, I realized the
$ip2state records are wrong by 1 byte... which in turn make the disassembler
display the wrong start for try[]. This is bad, as it would dispatch the wrong
exception handler if an error happens on the 1st instruction.
I spent some time and found that the source of the problem is
WinException::getLabel() used in computeIP2StateTable. While the function
correctly build a label plus 1 for other EH table uses, in computeIP2StateTable
it should really not add 1. So I create a new function that just does that and
it resolved the issue.
I attach a patch... I don't really have time to do more than this, nor can i
provide a test file.
Best regards,
Jerome WITMANN</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>