Skip to content

Commit

Permalink
Fix a max() call on None in print_guessed_arguments (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz authored Oct 13, 2021
1 parent ed413d1 commit 8719457
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -8672,7 +8672,9 @@ def __get_current_block_start_address():
pass

if not nb_argument:
if is_x86_32():
if not parameter_set:
nb_argument = 0
elif is_x86_32():
nb_argument = len(parameter_set)
else:
nb_argument = max(function_parameters.index(p)+1 for p in parameter_set)
Expand Down

0 comments on commit 8719457

Please sign in to comment.