Skip to content

Commit

Permalink
_pytracer: Fix range check in syscall lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Feb 17, 2015
1 parent eb32a33 commit c12e2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reprozip/native/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ int syscall_handle(struct Process *process)
}
else
#endif
if(entry == NULL && (syscall >= 0 || (size_t)syscall < tbl->length) )
if(entry == NULL && syscall >= 0 && (size_t)syscall < tbl->length)
entry = &tbl->entries[syscall];
if(entry != NULL)
{
Expand Down

0 comments on commit c12e2b6

Please sign in to comment.