We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e763dcc commit 04d276dCopy full SHA for 04d276d
wolfcrypt/test/test.c
@@ -2889,6 +2889,11 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t error_test(void)
2889
{ WC_SPAN1_LAST_E - 1, WC_SPAN2_FIRST_E + 1 },
2890
{ WC_SPAN2_LAST_E - 1, WC_SPAN2_MIN_CODE_E }
2891
};
2892
+#if defined(WOLFSSL_MAX_ERROR_SZ) && (WOLFSSL_MAX_ERROR_SZ < 64)
2893
+ /* If too small, the error_test() will fail.
2894
+ * See fixed length strings returned in wc_GetErrorString() */
2895
+ WOLFSSL_MSG("WOLFSSL_MAX_ERROR_SZ is too small");
2896
+#endif
2897
2898
/* Check that all errors have a string and it's the same through the two
2899
* APIs. Check that the values that are not errors map to the unknown
0 commit comments