http://llvm.org/bugs/show_bug.cgi?id=10624
Summary: llvm-objdump crashes when given bogus file
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=7041)
--> (http://llvm.org/bugs/attachment.cgi?id=7041)
one byte test case
If one inadvertently gives llvm-objdump a file with raw instructions (i.e. not
an object file after all), like the attached, one sees this crash.
(Not a high priority bug, but filing it in any case.)
% llvm-objdump xx.o -disassemble
0 llvm-objdump 0x000000010092e982
1 llvm-objdump 0x000000010092ef89
2 libsystem_c.dylib 0x00007fff86a09cfa _sigtramp + 26
3 libsystem_c.dylib 0x00007fff603f9120 _sigtramp + 18446744073065657408
4 llvm-objdump 0x00000001007c7140
5 llvm-objdump 0x00000001007c49e4
Stack dump:
0. Program arguments: llvm-objdump xx.o -disassemble
[1] 38577 segmentation fault llvm-objdump xx.o -disassemble
% od -x xx.o
0000000 00c3
0000001
%
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs