Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(845)

Issue 203001: Added libdisasm to the repository. This library is no longer under developmen... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by Cris Neckar
Modified:
14 years, 1 month ago
Reviewers:
mochalatte, Ted Mielczarek, cdn, siyangxie
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Added libdisasm to the repository. This library is no longer under development
so there
is no reason not to keep it locally. Implemented a basic disassembler which can
be used
to scan bytecode for interesting conditions. This should be pretty easy to add
to for
things other than exploitability if there is a desire. This also adds several
tests to
the windows exploitability ranking code to take advantage of the disassembler
for x86
code.

BUG=None
TEST=DisassemblerX86Test.*


Committed: http://code.google.com/p/google-breakpad/source/detail?r=705

Patch Set 1 #

Total comments: 16

Patch Set 2 : '' #

Total comments: 26

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M Makefile.am View 1 2 3 4 5 12 chunks +94 lines, -3 lines 0 comments Download
M Makefile.in View 1 2 3 4 5 47 chunks +448 lines, -18 lines 0 comments Download
M aclocal.m4 View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M configure View 1 2 3 4 5 99 chunks +206 lines, -185 lines 0 comments Download
A src/processor/disassembler_x86.cc View 1 2 3 4 1 chunk +232 lines, -0 lines 0 comments Download
A src/processor/disassembler_x86.h View 1 2 3 4 1 chunk +118 lines, -0 lines 0 comments Download
A src/processor/disassembler_x86_unittest.cc View 1 2 1 chunk +240 lines, -0 lines 0 comments Download
A src/processor/exploitability_unittest.cc View 1 chunk +213 lines, -0 lines 0 comments Download
M src/processor/exploitability_win.cc View 1 2 3 4 5 4 chunks +123 lines, -11 lines 0 comments Download
M src/processor/minidump_processor_unittest.cc View 5 1 chunk +0 lines, -18 lines 0 comments Download
A src/processor/testdata/ascii_read_av.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/ascii_read_av_block_write.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/ascii_read_av_clobber_write.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/ascii_read_av_conditional.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/ascii_read_av_then_jmp.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/ascii_read_av_xchg_write.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/ascii_write_av.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/ascii_write_av_arg_to_call.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/exec_av_on_stack.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/null_read_av.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/null_write_av.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/processor/testdata/stack_exhaustion.dmp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/third_party/libdisasm/.dirstamp View 0 chunks +-1 lines, --1 lines 0 comments Download
A src/third_party/libdisasm/Makefile.am View 1 chunk +43 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/TODO View 1 chunk +43 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_implicit.c View 1 chunk +422 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_implicit.h View 1 chunk +13 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_insn.c View 1 chunk +625 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_insn.h View 1 chunk +506 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_invariant.c View 1 chunk +313 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_invariant.h View 1 chunk +11 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_modrm.c View 1 chunk +310 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_modrm.h View 1 chunk +13 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_opcode_tables.c View 1 chunk +2939 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_opcode_tables.h View 1 chunk +57 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_operand.c View 1 chunk +425 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_operand.h View 1 chunk +11 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_reg.c View 1 chunk +234 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_reg.h View 1 chunk +41 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_settings.c View 1 chunk +13 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/ia32_settings.h View 1 chunk +27 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/libdis.h View 1 chunk +836 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/qword.h View 1 chunk +14 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/Makefile View 1 chunk +70 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/README View 1 chunk +128 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/libdisasm.i View 1 chunk +508 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/libdisasm_oop.i View 1 chunk +1114 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/perl/Makefile-swig View 1 chunk +65 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/perl/Makefile.PL View 1 chunk +7 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/python/Makefile-swig View 1 chunk +64 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/ruby/Makefile-swig View 1 chunk +68 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/ruby/extconf.rb View 1 chunk +4 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/swig/tcl/Makefile-swig View 1 chunk +63 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/x86_disasm.c View 1 chunk +210 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/x86_format.c View 1 chunk +1430 lines, -0 lines 1 comment Download
A src/third_party/libdisasm/x86_imm.c View 1 chunk +70 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/x86_imm.h View 1 chunk +18 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/x86_insn.c View 1 chunk +182 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/x86_misc.c View 1 chunk +71 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/x86_operand_list.c View 1 chunk +191 lines, -0 lines 0 comments Download
A src/third_party/libdisasm/x86_operand_list.h View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 8
Cris Neckar
This one is kind of a beast but the vast majority is just incorporating libdisasm ...
14 years, 2 months ago #1
mochalatte
http://breakpad.appspot.com/203001/diff/1/3 File Makefile.in (right): http://breakpad.appspot.com/203001/diff/1/3#newcode196 Line 196: $(CXXFLAGS) $(src_libbreakpad_la_LDFLAGS) $(LDFLAGS) -o $@ just to be ...
14 years, 1 month ago #2
Cris Neckar
http://breakpad.appspot.com/203001/diff/1/3 File Makefile.in (right): http://breakpad.appspot.com/203001/diff/1/3#newcode196 Line 196: $(CXXFLAGS) $(src_libbreakpad_la_LDFLAGS) $(LDFLAGS) -o $@ On 2010/09/29 16:08:08, ...
14 years, 1 month ago #3
Ted Mielczarek
http://breakpad.appspot.com/203001/diff/9001/10001 File Makefile.am (right): http://breakpad.appspot.com/203001/diff/9001/10001#newcode334 Line 334: -I$(top_srcdir)/src/testing/include \ Stick a -I$(top-srcdir)/src here please (I ...
14 years, 1 month ago #4
cdn
http://breakpad.appspot.com/203001/diff/9001/10001 File Makefile.am (right): http://breakpad.appspot.com/203001/diff/9001/10001#newcode334 Line 334: -I$(top_srcdir)/src/testing/include \ On 2010/09/30 14:15:06, Ted Mielczarek wrote: ...
14 years, 1 month ago #5
Ted Mielczarek
http://breakpad.appspot.com/203001/diff/9001/10008 File src/processor/exploitability_win.cc (right): http://breakpad.appspot.com/203001/diff/9001/10008#newcode207 Line 207: memory_size++; On 2010/09/30 21:33:33, cdn wrote: > On ...
14 years, 1 month ago #6
Cris Neckar
Thanks Ted! I also added tests for exploitability_win and fixed a few functional bugs that ...
14 years, 1 month ago #7
SiyangXie
14 years, 1 month ago #8
http://breakpad.appspot.com/203001/diff/30001/31055
File src/third_party/libdisasm/x86_format.c (right):

http://breakpad.appspot.com/203001/diff/30001/31055#newcode296
Line 296: if (! (int) op->flags & 0xF00 ) {
Hey, I was trying to compiler this with blaze, but I saw a warning "suggest
parentheses ...".  Then I took a look at the condition, it got me wondering, do
you really mean:

if ( ! ((int)op->flags & 0xF00) ) ?  Operator '!' has a higher precedence than
operator '&'.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted