[LLVMbugs] [Bug 193] NEW: ReadArchiveBuffer() can sometimes cause crashes and incorrect behavior

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Sat Dec 20 14:37:10 PST 2003


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=193

           Summary: ReadArchiveBuffer() can sometimes cause crashes and
                    incorrect behavior
           Product: libraries
           Version: 1.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Bytecode Reader
        AssignedTo: sabre at nondot.org
        ReportedBy: criswell at uiuc.edu


A bug in ReadArchiveBuffer() caused gccld to his an assertion during code
optimization passes.  This bug stems from a std::string in ReadArchiveBuffer()
that is passed by reference to the newly created Module object that it passes
back to its caller.  Since the std::string is deallocated on exit from
ReadArchiveBuffer(), the caller has a Module object refering to freed memory,
and this can lead to odd behavior in gccld (and potentially other programs).



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list