Skip to main content
The AddressValue object represents a memory address in the binary. It is used throughout VulHunt rules to reference specific locations in the binary, such as function addresses, call site addresses, and instruction addresses. AddressValue supports arithmetic (+, -), comparison (==, <, <=), and conversion to string and BitVec.

Functions

Methods

Reference

new

Constructs a new AddressValue from an integer, string, BitVec, or another AddressValue.

from_integer

Creates an AddressValue from an unsigned 64-bit integer.

from_string

Parses an AddressValue from a hexadecimal string.

from_bitvec

Converts a BitVec to an AddressValue.

to_bitvec

Converts the address to a BitVec with specified bit size.

Example