From 605e06946fc3a47f0010d36a38bf225ef4d0e404 Mon Sep 17 00:00:00 2001 From: Julian Storer Date: Fri, 12 Mar 2010 10:19:33 +0000 Subject: [PATCH] MD5 fix. --- juce_amalgamated.cpp | 4 ++-- src/cryptography/juce_MD5.cpp | 2 +- .../contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp index d0681ce262..ea013a0cea 100644 --- a/juce_amalgamated.cpp +++ b/juce_amalgamated.cpp @@ -4677,7 +4677,7 @@ void MD5::ProcessContext::finish (uint8* const result) processBlock (encodedLength, 8); - MD5Functions::encode (result, state, sizeof (result)); + MD5Functions::encode (result, state, 16); zerostruct (buffer); } @@ -81158,7 +81158,7 @@ private: PixelRGB filler [4]; bool areRGBComponentsEqual; - inline void blendLine (PixelType* dest, const PixelARGB& colour, int width) const + inline void blendLine (PixelType* dest, const PixelARGB& colour, int width) const throw() { do { diff --git a/src/cryptography/juce_MD5.cpp b/src/cryptography/juce_MD5.cpp index 5273f393be..16d4106c34 100644 --- a/src/cryptography/juce_MD5.cpp +++ b/src/cryptography/juce_MD5.cpp @@ -243,7 +243,7 @@ void MD5::ProcessContext::finish (uint8* const result) processBlock (encodedLength, 8); - MD5Functions::encode (result, state, sizeof (result)); + MD5Functions::encode (result, state, 16); zerostruct (buffer); } diff --git a/src/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp b/src/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp index 7aa23ff4b7..00ed18d0ce 100644 --- a/src/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp +++ b/src/gui/graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp @@ -103,7 +103,7 @@ private: PixelRGB filler [4]; bool areRGBComponentsEqual; - inline void blendLine (PixelType* dest, const PixelARGB& colour, int width) const + inline void blendLine (PixelType* dest, const PixelARGB& colour, int width) const throw() { do {