Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/mupdf/files/patch-thirdparty_lcms2_src_cmsmd5.c
| --- thirdparty/lcms2/src/cmsmd5.c.orig 2018-10-31 19:49:39 UTC | --- thirdparty/lcms2/src/cmsmd5.c.orig 2018-01-23 19:37:31 UTC | ||||
| +++ thirdparty/lcms2/src/cmsmd5.c | +++ thirdparty/lcms2/src/cmsmd5.c | ||||
| @@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||||
| #ifdef CMS_USE_BIG_ENDIAN | #ifdef CMS_USE_BIG_ENDIAN | ||||
| static | static | ||||
| -void byteReverse(cmsUInt8Number * buf, cmsUInt32Number longs) | -void byteReverse(cmsUInt8Number * buf, cmsUInt32Number longs) | ||||
| +void byteReverse(cmsContext ContextID, cmsUInt8Number * buf, cmsUInt32Number longs) | +void byteReverse(cmsContext ContextID, cmsUInt8Number * buf, cmsUInt32Number longs) | ||||
| { | { | ||||
| do { | do { | ||||
| @@ -42,7 +42,7 @@ void byteReverse(cmsUInt8Number * buf, cmsUInt32Number | @@ -42,7 +42,7 @@ void byteReverse(cmsUInt8Number * buf, c | ||||
| } | } | ||||
| #else | #else | ||||
| -#define byteReverse(buf, len) | -#define byteReverse(buf, len) | ||||
| +#define byteReverse(ContextID, buf, len) | +#define byteReverse(ContextID, buf, len) | ||||
| #endif | #endif | ||||
| @@ -196,7 +196,7 @@ void MD5add(cmsHANDLE Handle, cmsUInt8Number* buf, cms | @@ -196,7 +196,7 @@ void MD5add(cmsHANDLE Handle, cmsUInt8Nu | ||||
| } | } | ||||
| memmove(p, buf, t); | memmove(p, buf, t); | ||||
| - byteReverse(ctx->in, 16); | - byteReverse(ctx->in, 16); | ||||
| + byteReverse(ctx->ContextID, ctx->in, 16); | + byteReverse(ctx->ContextID, ctx->in, 16); | ||||
| MD5_Transform(ctx->buf, (cmsUInt32Number *) ctx->in); | MD5_Transform(ctx->buf, (cmsUInt32Number *) ctx->in); | ||||
| buf += t; | buf += t; | ||||
| @@ -205,7 +205,7 @@ void MD5add(cmsHANDLE Handle, cmsUInt8Number* buf, cms | @@ -205,7 +205,7 @@ void MD5add(cmsHANDLE Handle, cmsUInt8Nu | ||||
| while (len >= 64) { | while (len >= 64) { | ||||
| memmove(ctx->in, buf, 64); | memmove(ctx->in, buf, 64); | ||||
| - byteReverse(ctx->in, 16); | - byteReverse(ctx->in, 16); | ||||
| + byteReverse(ctx->ContextID, ctx->in, 16); | + byteReverse(ctx->ContextID, ctx->in, 16); | ||||
| MD5_Transform(ctx->buf, (cmsUInt32Number *) ctx->in); | MD5_Transform(ctx->buf, (cmsUInt32Number *) ctx->in); | ||||
| buf += 64; | buf += 64; | ||||
| len -= 64; | len -= 64; | ||||
| @@ -232,21 +232,21 @@ void MD5finish(cmsProfileID* ProfileID, cmsHANDLE Han | @@ -232,21 +232,21 @@ void MD5finish(cmsProfileID* ProfileID, | ||||
| if (count < 8) { | if (count < 8) { | ||||
| memset(p, 0, count); | memset(p, 0, count); | ||||
| - byteReverse(ctx->in, 16); | - byteReverse(ctx->in, 16); | ||||
| + byteReverse(ctx->ContextID, ctx->in, 16); | + byteReverse(ctx->ContextID, ctx->in, 16); | ||||
| MD5_Transform(ctx->buf, (cmsUInt32Number *) ctx->in); | MD5_Transform(ctx->buf, (cmsUInt32Number *) ctx->in); | ||||
| memset(ctx->in, 0, 56); | memset(ctx->in, 0, 56); | ||||
| Show All 16 Lines | |||||