Changeset 251089 in webkit


Ignore:
Timestamp:
Oct 14, 2019, 1:25:40 PM (6 years ago)
Author:
achristensen@apple.com
Message:

REGRESSION: [iOS 13?] TestWebKitAPI.SharedBufferTest.tryCreateArrayBufferLargeSegments is failing
https://bugs.webkit.org/show_bug.cgi?id=201902

Reviewed by Ryosuke Niwa.

Source/WebCore:

  • Modules/webauthn/fido/U2fResponseConverter.cpp:

(fido::WebCore::createAttestedCredentialDataFromU2fRegisterResponse):

Source/WTF:

  • wtf/Vector.h:

The code introduced in r108153 to workaround a warning when building Chrome was causing us to use uninitialized memory
when we create a Vector with the size_t/{signed,unsigned}char constructor with a constexpr size_t.
This was the cause of bug 201902 and bug 201620 which only manifested themselves in release builds with some compilers.

Tools:

  • TestWebKitAPI/Tests/WebCore/SharedBuffer.cpp:

(TestWebKitAPI::TEST_F):

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r251087 r251089  
     12019-10-14  Alex Christensen  <achristensen@webkit.org>
     2
     3        REGRESSION: [iOS 13?] TestWebKitAPI.SharedBufferTest.tryCreateArrayBufferLargeSegments is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=201902
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * wtf/Vector.h:
     9        The code introduced in r108153 to workaround a warning when building Chrome was causing us to use uninitialized memory
     10        when we create a Vector with the size_t/{signed,unsigned}char constructor with a constexpr size_t.
     11        This was the cause of bug 201902 and bug 201620 which only manifested themselves in release builds with some compilers.
     12
    1132019-10-14  Per Arne Vollan  <pvollan@apple.com>
    214
  • trunk/Source/WTF/wtf/Vector.h

    r250005 r251089  
    205205    {
    206206        static_assert(sizeof(T) == 1, "Size of type T should be equal to one!");
    207 #if COMPILER(GCC_COMPATIBLE) && defined(_FORTIFY_SOURCE)
    208         if (!__builtin_constant_p(dstEnd - dst) || (!(dstEnd - dst)))
    209 #endif
    210             memset(dst, val, dstEnd - dst);
     207        memset(dst, val, dstEnd - dst);
    211208    }
    212209};
  • trunk/Source/WebCore/ChangeLog

    r251084 r251089  
     12019-10-14  Alex Christensen  <achristensen@webkit.org>
     2
     3        REGRESSION: [iOS 13?] TestWebKitAPI.SharedBufferTest.tryCreateArrayBufferLargeSegments is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=201902
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * Modules/webauthn/fido/U2fResponseConverter.cpp:
     9        (fido::WebCore::createAttestedCredentialDataFromU2fRegisterResponse):
     10
    1112019-10-14  Russell Epstein  <russell_e@apple.com>
    212
  • trunk/Source/WebCore/Modules/webauthn/fido/U2fResponseConverter.cpp

    r250455 r251089  
    9999        return { };
    100100
    101     Vector<uint8_t> aaguid(aaguidLength);
    102     memset(aaguid.data(), 0, aaguidLength);
    103     return buildAttestedCredentialData(aaguid, credentialId, publicKey);
     101    return buildAttestedCredentialData(Vector<uint8_t>(aaguidLength, 0), credentialId, publicKey);
    104102}
    105103
  • trunk/Tools/ChangeLog

    r251085 r251089  
     12019-10-14  Alex Christensen  <achristensen@webkit.org>
     2
     3        REGRESSION: [iOS 13?] TestWebKitAPI.SharedBufferTest.tryCreateArrayBufferLargeSegments is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=201902
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * TestWebKitAPI/Tests/WebCore/SharedBuffer.cpp:
     9        (TestWebKitAPI::TEST_F):
     10
    1112019-10-14  Saam Barati  <sbarati@apple.com>
    212
  • trunk/Tools/TestWebKitAPI/Tests/WebCore/SharedBuffer.cpp

    r250105 r251089  
    102102}
    103103
    104 #if !PLATFORM(IOS) // FIXME: webkit.org/b/201902 REGRESSION: [iOS 13?] TestWebKitAPI.SharedBufferTest.tryCreateArrayBufferLargeSegments is failing
    105104TEST_F(SharedBufferTest, tryCreateArrayBufferLargeSegments)
    106105{
     
    128127    }
    129128}
    130 #endif // !PLATFORM(IOS)
    131129
    132130TEST_F(SharedBufferTest, copy)
Note: See TracChangeset for help on using the changeset viewer.