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 newAddressValue from an integer, string, BitVec, or another AddressValue.
from_integer
Creates anAddressValue from an unsigned 64-bit integer.
from_string
Parses anAddressValue from a hexadecimal string.
from_bitvec
Converts aBitVec to an AddressValue.
to_bitvec
Converts the address to aBitVec with specified bit size.