angr.procedures.libc.strtol¶
- class angr.procedures.libc.strtol.strtol¶
Bases:
SimProcedure- static strtol_inner(s, state, region, base, signed, read_length=None)¶
Inner parser for strtol-style functions.
Note: all numbers may start with +/- and base 16 may start with 0x.
- Parameters:
s – the string address/offset
state – SimState
region – memory, file, etc
base – the base to use to interpret the number
signed – boolean, true means the result will be signed, otherwise unsigned
read_length – int, the number of bytes parsed in strtol
- Returns:
(expression, value, num_bytes)whereexpressionis a symbolic boolean indicating success,valueis the returned value (set to 0 on failure, or min/max on overflow), andnum_bytesis the number of bytes read in the string.