Skip to content

Commit

Permalink
handles MP_BUF in mp_error_to_string
Browse files Browse the repository at this point in the history
(cherry picked from commit a825e0a)
  • Loading branch information
fperrad authored and sjaeckel committed Oct 21, 2019
1 parent 35178bf commit 2ef4c9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bn_mp_error_to_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const char *mp_error_to_string(mp_err code)
return "Value out of range";
case MP_ITER:
return "Max. iterations reached";
case MP_BUF:
return "Buffer overflow";
default:
return "Invalid error code";
}
Expand Down

0 comments on commit 2ef4c9b

Please sign in to comment.