[LLVMbugs] [Bug 13678] New: Exception table generation does not retry on buffer overflow

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 23 07:31:53 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13678

             Bug #: 13678
           Summary: Exception table generation does not retry on buffer
                    overflow
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: mmuller at enduden.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


JITEmitter::finishFunction()  calls EmitDwarfTable() to generate the exception
tables for the function, but doesn't check for a buffer overflow afterwards. 
As a result of this, we can end up with a partial exception record for a
function which can result in a seg-fault during exception handling.

The attached patch fixes it, I haven't figured out how to implement a unit test
for it yet.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list