Commit 2ef4c9bdd4c5fd1c81de4cfc5ef9a09cb1677891

Francois Perrad 2019-10-20T16:37:46

handles MP_BUF in mp_error_to_string (cherry picked from commit a825e0a3601f81ddf1a6753c45e5b74d44c23d78)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_error_to_string.c b/bn_mp_error_to_string.c
index e936ec1..2e2adb0 100644
--- a/bn_mp_error_to_string.c
+++ b/bn_mp_error_to_string.c
@@ -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";
    }