[LLVMbugs] [Bug 3785] New: Buffer overflow in test/CodeGen/ARM/pr3502.ll

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Mar 11 07:51:41 PDT 2009


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

           Summary: Buffer overflow in test/CodeGen/ARM/pr3502.ll
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


valgrind reports

==7022== Invalid read of size 1                                                 
==7022==    at 0xA50357:
llvm::ARMTargetAsmInfo<llvm::ELFTargetAsmInfo>::getInlineAsmLength(char const*)
const (ARMTargetAsmInfo.cpp:175)
==7022==    by 0xA3610D:
llvm::ARMInstrInfo::GetInstSizeInBytes(llvm::MachineInstr const*) const
(ARMInstrInfo.cpp:929)                  
==7022==    by 0x9D1736: (anonymous
namespace)::ARMConstantIslands::InitialFunctionScan(llvm::MachineFunction&,
std::vector<llvm::MachineInstr*, std::allocator<llvm::MachineInstr*> > const&)
(ARMConstantIslandPass.cpp:368)                                                 
==7022==    by 0x9D2011: (anonymous
namespace)::ARMConstantIslands::runOnMachineFunction(llvm::MachineFunction&)
(ARMConstantIslandPass.cpp:242)                     
==7022==    by 0x8959A0:
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(MachineFunctionPass.h:42)                                                      
==7022==    by 0x109F58F: llvm::FPPassManager::runOnFunction(llvm::Function&)
(PassManager.cpp:1324)                                                          
==7022==    by 0x10A00C2: llvm::FunctionPassManagerImpl::run(llvm::Function&)
(PassManager.cpp:1281)                                                          
==7022==    by 0x10A0223: llvm::FunctionPassManager::run(llvm::Function&)
(PassManager.cpp:1233)                                                          
==7022==    by 0x81395F: main (llc.cpp:319)                                     
==7022==  Address 0x5df0ae6 is 0 bytes after a block of size 30 alloc'd         
==7022==    at 0x4C2794E: malloc (vg_replace_malloc.c:177)                      
==7022==    by 0xA4FB4B:
llvm::ARMTargetAsmInfo<llvm::ELFTargetAsmInfo>::getInlineAsmLength(char const*)
const (ARMTargetAsmInfo.cpp:165)                            
==7022==    by 0xA3610D:
llvm::ARMInstrInfo::GetInstSizeInBytes(llvm::MachineInstr const*) const
(ARMInstrInfo.cpp:929)                                              
==7022==    by 0x9D1736: (anonymous
namespace)::ARMConstantIslands::InitialFunctionScan(llvm::MachineFunction&,
std::vector<llvm::MachineInstr*, std::allocator<llvm::MachineInstr*> > const&)
(ARMConstantIslandPass.cpp:368)                                                 
==7022==    by 0x9D2011: (anonymous
namespace)::ARMConstantIslands::runOnMachineFunction(llvm::MachineFunction&)
(ARMConstantIslandPass.cpp:242)                     
==7022==    by 0x8959A0:
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(MachineFunctionPass.h:42)                                                      
==7022==    by 0x109F58F: llvm::FPPassManager::runOnFunction(llvm::Function&)
(PassManager.cpp:1324)                                                          
==7022==    by 0x10A00C2: llvm::FunctionPassManagerImpl::run(llvm::Function&)
(PassManager.cpp:1281)                                                          
==7022==    by 0x10A0223: llvm::FunctionPassManager::run(llvm::Function&)
(PassManager.cpp:1233)                                                          
==7022==    by 0x81395F: main (llc.cpp:319)


-- 
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