Changeset 64327 in webkit for trunk/JavaScriptCore/wtf/MD5.cpp


Ignore:
Timestamp:
Jul 29, 2010, 6:27:24 PM (15 years ago)
Author:
[email protected]
Message:

2010-07-29 Sheriff Bot <[email protected]>

Unreviewed, rolling out r64302.
http://trac.webkit.org/changeset/64302
https://bugs.webkit.org/show_bug.cgi?id=43223

Assertion is bogus (Requested by olliej on #webkit).

  • assembler/ARMAssembler.cpp: (JSC::ARMAssembler::executableCopy):
  • assembler/AssemblerBuffer.h: (JSC::AssemblerBuffer::putShortUnchecked): (JSC::AssemblerBuffer::putIntUnchecked): (JSC::AssemblerBuffer::putInt64Unchecked):
  • jit/JITStubs.cpp:
  • pcre/pcre_compile.cpp: (jsRegExpCompile):
  • wtf/FastMalloc.cpp: (WTF::PageHeapAllocator::New): (WTF::TCMalloc_Central_FreeList::Populate):
  • wtf/MD5.cpp: (WTF::reverseBytes): (WTF::MD5::addBytes): (WTF::MD5::checksum):
  • wtf/StdLibExtras.h:
  • wtf/Vector.h: (WTF::VectorBuffer::inlineBuffer):
  • wtf/qt/StringQt.cpp: (WebCore::String::String):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/MD5.cpp

    r64302 r64327  
    5555#include "text/CString.h"
    5656#endif
    57 #include <wtf/StdLibExtras.h>
    5857
    5958namespace WTF {
     
    105104        uint32_t t = static_cast<uint32_t>(buf[3] << 8 | buf[2]) << 16 | buf[1] << 8 | buf[0];
    106105        ASSERT_WITH_MESSAGE(!(reinterpret_cast<uintptr_t>(buf) % sizeof(t)), "alignment error of buf");
    107         *reinterpret_cast_ptr<uint32_t *>(buf) = t;
     106        *reinterpret_cast<uint32_t *>(buf) = t;
    108107        buf += 4;
    109108    } while (--longs);
     
    240239        memcpy(p, buf, t);
    241240        reverseBytes(m_in, 16);
    242         MD5Transform(m_buf, reinterpret_cast_ptr<uint32_t*>(m_in)); // m_in is 4-byte aligned.
     241        MD5Transform(m_buf, reinterpret_cast<uint32_t*>(m_in)); // m_in is 4-byte aligned.
    243242        buf += t;
    244243        length -= t;
     
    250249        memcpy(m_in, buf, 64);
    251250        reverseBytes(m_in, 16);
    252         MD5Transform(m_buf, reinterpret_cast_ptr<uint32_t*>(m_in)); // m_in is 4-byte aligned.
     251        MD5Transform(m_buf, reinterpret_cast<uint32_t*>(m_in)); // m_in is 4-byte aligned.
    253252        buf += 64;
    254253        length -= 64;
     
    277276        memset(p, 0, count);
    278277        reverseBytes(m_in, 16);
    279         MD5Transform(m_buf, reinterpret_cast_ptr<uint32_t *>(m_in)); // m_in is 4-byte aligned.
     278        MD5Transform(m_buf, reinterpret_cast<uint32_t *>(m_in)); // m_in is 4-byte aligned.
    280279
    281280        // Now fill the next block with 56 bytes
     
    289288    // Append length in bits and transform
    290289    // m_in is 4-byte aligned.
    291     (reinterpret_cast_ptr<uint32_t*>(m_in))[14] = m_bits[0];
    292     (reinterpret_cast_ptr<uint32_t*>(m_in))[15] = m_bits[1];
    293 
    294     MD5Transform(m_buf, reinterpret_cast_ptr<uint32_t*>(m_in));
     290    (reinterpret_cast<uint32_t*>(m_in))[14] = m_bits[0];
     291    (reinterpret_cast<uint32_t*>(m_in))[15] = m_bits[1];
     292
     293    MD5Transform(m_buf, reinterpret_cast<uint32_t*>(m_in));
    295294    reverseBytes(reinterpret_cast<uint8_t*>(m_buf), 4);
    296295
Note: See TracChangeset for help on using the changeset viewer.