package binsec
Install
dune-project
Dependency
Authors
-
AAdel Djoudi
-
BBenoit Boero
-
BBenjamin Farinier
-
CChakib Foulani
-
DDorian Lesbre
-
FFrédéric Recoules
-
GGuillaume Girol
-
JJosselin Feist
-
LLesly-Ann Daniel
-
MMahmudul Faisal Al Ameen
-
MManh-Dung Nguyen
-
MMathéo Vergnolle
-
MMatthieu Lemerre
-
NNicolas Bellec
-
OOlivier Nicole
-
RRichard Bonichon
-
RRobin David
-
SSébastien Bardin
-
SSoline Ducousso
-
TTa Thanh Dinh
-
YYaëlle Vinçont
-
YYanis Sellami
Maintainers
Sources
sha256=bb48234a4b60a872015a88282df4873f01dcc984753d49ad2583d49c1ae7d705
sha512=e8aa47a736b83bfd47d5b5e96d0988859b4873ad4a112fee7cd21d02bc72ecec61b7de610a959e38d2f2f5eef8082a2c100c201e5eae5ae3a880c747dce6ae63
doc/binsec_kernel_dba/Binsec_kernel_dba/Dhunk/index.html
Module Binsec_kernel_dba.DhunkSource
DBA hunks, aka dhunk
DBA blocks
A DBA block represents a set of DBA instructions with explicit links to the next one. The first instruction of the block always has id 0. Typically, DBA a block is the translation of one binary/assembly instruction.
A simple dhunk of one instruction jumping to the virtual address.
of_list l assumes the list is sorted in increasing order inside the block
of_list l assumes the list is sorted in increasing order inside the block, i.e. the labels are contiguous starting from 0.
unlink dh i skips the ith instruction. Its predecessors go to its successor.
view dh Visualize dot-rendered DBA hunk dh using cmd.
Default value for cmd is firefox.
optimize dh Performs some "compiler" optimizations and return the simplified block.
include Binsec_base.Sigs.PRINTABLE with type t := t
Dhunk properties
outer_jumps b computes the set of jumps to external addresses in hunk b. Due to dynamic jumps, this represents a syntactic under-approximation of the possible jumps from this block.
callees b computes the set of addresses this block may call
has_indirect_jump d returns true if the hunk contains an indirect jump instruction
type conditional = {condition : Dba.Expr.t;consequent : Binsec_base.Virtual_address.t;alternative : Binsec_base.Virtual_address.t;
}