IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10365


Ignore:
Timestamp:
Nov 30, 2006, 5:25:05 PM (20 years ago)
Author:
Paul Price
Message:

Adding assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMD5.c

    r10319 r10365  
    6464psString psMD5toString(const psVector *hash)
    6565{
     66    PS_ASSERT_VECTOR_NON_NULL(hash, NULL);
     67    PS_ASSERT_VECTOR_SIZE(hash, MD5_DIGEST_LENGTH, NULL);
     68    PS_ASSERT_VECTOR_TYPE(has, PS_TYPE_U8, NULL);
     69
    6670    psString string = psStringAlloc(MD5_DIGEST_LENGTH * 2 + 1); // String to return
    6771    for (int i = 0; i < MD5_DIGEST_LENGTH; i++) {
Note: See TracChangeset for help on using the changeset viewer.