handles MP_BUF in mp_error_to_string (cherry picked from commit a825e0a3601f81ddf1a6753c45e5b74d44c23d78)
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";
}