Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New working model of strlen #1725

Merged
merged 11 commits into from
Jul 7, 2020
6 changes: 3 additions & 3 deletions manticore/native/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def strlen(state: State, addr: Union[int, BitVec]) -> Union[int, BitVec]:
"""

if issymbolic(addr):
raise ConcretizeArgument(state.cpu, 0)
raise ConcretizeArgument(state.cpu, 1)

cpu = state.cpu
constrs = state.constraints
Expand Down Expand Up @@ -210,10 +210,10 @@ def strcpy(state: State, dst: Union[int, BitVec], src: Union[int, BitVec]) -> Un
:return: pointer to the dst
"""
if issymbolic(src):
raise ConcretizeArgument(state.cpu, 1)
raise ConcretizeArgument(state.cpu, 2)

if issymbolic(dst):
raise ConcretizeArgument(state.cpu, 0)
raise ConcretizeArgument(state.cpu, 1)
ekilmer marked this conversation as resolved.
Show resolved Hide resolved

cpu = state.cpu
constrs = state.constraints
Expand Down