Index: trunk/psLib/src/math/psMD5.c
===================================================================
--- trunk/psLib/src/math/psMD5.c	(revision 10319)
+++ trunk/psLib/src/math/psMD5.c	(revision 10365)
@@ -64,4 +64,8 @@
 psString psMD5toString(const psVector *hash)
 {
+    PS_ASSERT_VECTOR_NON_NULL(hash, NULL);
+    PS_ASSERT_VECTOR_SIZE(hash, MD5_DIGEST_LENGTH, NULL);
+    PS_ASSERT_VECTOR_TYPE(has, PS_TYPE_U8, NULL);
+
     psString string = psStringAlloc(MD5_DIGEST_LENGTH * 2 + 1); // String to return
     for (int i = 0; i < MD5_DIGEST_LENGTH; i++) {
