Home

Awesome

ctfdiff

CTF diff of two files.

Build

$ ninja

Dependencies

Usage

ctfdiff [-afFhilLoOqtT] file1 file2	

General options

Label options

Object options

Function options

Type options

Comparison algorithm

Label

Two labels are equal, if they have the same name.

Object

Two objects are equal, if they have the same name and type.

Function

Two functions are equal, if they have the same name, return type and arguments (both count- and type-wise)

Type

Two types are equal, if they have the same kind and the variable data (properties and lists) stored with the type is the same (e.g. member offsets, enum entry values, integer content, float encoding, ...).

Struct

Two structs are equal, if they have the same member names and member offsets.

Exit status

The result of the diff can be determined also by the return code/exit status of the program.

0

The requested diff query contains no differences.

1

The requested diff query contains differences.

2

Wrong arguments.

3

An error occurred during the execution.

Run

$ ctfdiff -q -T 'struct proc' /boot/kernel.old/kernel /boot/kernel/kernel
$ echo $?
0

Authors