package binsec
Install
dune-project
Dependency
Authors
-
AAdel Djoudi
-
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
-
MMathilde Ollivier
-
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=4cf70a0367fef6f33ee3165f05255914513ea0539b94ddfef0bd46fc9b42fa8a
sha512=cd67a5b7617f661a7786bef0c828ee55307cef5260dfecbb700a618be795d81b1ac49fc1a18c4904fd2eb8a182dc862b0159093028651e78e7dc743f5babf9e3
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;
}