https://bugs.llvm.org/show_bug.cgi?id=40855

            Bug ID: 40855
           Summary: ExceptionDataRecord::EpilogueCount returns wrong
                    amount in some cases on aarch64
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Support Libraries
          Assignee: unassignedb...@nondot.org
          Reporter: froy...@gmail.com
                CC: dma...@mozilla.com, llvm-bugs@lists.llvm.org,
                    mar...@martin.st

I have an aarch64 executable with a function that llvm-readelf claims has 123
(!) epilogue scopes.  This is fine as far as it goes, but 123 is wrong, because
this code:

https://github.com/llvm-mirror/llvm/blob/f25266101e3a715fb377960a7cf99c4f9ec2f37e/include/llvm/Support/ARMWinEH.h#L385-L392

is wrong: in the HeaderWords() != 1 case, we're trying to extract a 16-bit
field, but the return type of the function truncates that 16-bit quantity to 8
bits.  The actual amount is 891 (!), which is similarly unbelievable, but there
you go.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to