Changeset 169329 in webkit


Ignore:
Timestamp:
May 26, 2014 12:15:08 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Fix build error in blob.cpp after r168435
https://bugs.webkit.org/show_bug.cgi?id=132678

Patch by Tanay C <tanay.c@samsung.com> on 2014-05-26
Reviewed by Alexey Proskuryakov.

  • fileapi/Blob.cpp:

(WebCore::Blob::size): Using isInBound to check range of local var
actualsize to resolve build error

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r169328 r169329  
     12014-05-26  Tanay C  <tanay.c@samsung.com>
     2
     3        [EFL] Fix build error in blob.cpp after r168435
     4        https://bugs.webkit.org/show_bug.cgi?id=132678
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * fileapi/Blob.cpp:
     9        (WebCore::Blob::size): Using isInBound to check range of local var
     10        actualsize to resolve build error
     11
    1122014-05-25  Ryuan Choi  <ryuan.choi@samsung.com>
    213
  • trunk/Source/WebCore/fileapi/Blob.cpp

    r168435 r169329  
    125125        // come up with an exception to throw if file size is not representable.
    126126        unsigned long long actualSize = ThreadableBlobRegistry::blobSize(m_internalURL);
    127         m_size = (actualSize <= std::numeric_limits<long long>::max()) ? static_cast<long long>(actualSize) : 0;
     127        m_size = (WTF::isInBounds<long long>(actualSize)) ? static_cast<long long>(actualSize) : 0;
    128128    }
    129129
Note: See TracChangeset for help on using the changeset viewer.