Title: [169329] trunk/Source/WebCore
- Revision
- 169329
- Author
- commit-qu...@webkit.org
- Date
- 2014-05-26 00:15:08 -0700 (Mon, 26 May 2014)
Log Message
[EFL] Fix build error in blob.cpp after r168435
https://bugs.webkit.org/show_bug.cgi?id=132678
Patch by Tanay C <tana...@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
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (169328 => 169329)
--- trunk/Source/WebCore/ChangeLog 2014-05-26 06:17:57 UTC (rev 169328)
+++ trunk/Source/WebCore/ChangeLog 2014-05-26 07:15:08 UTC (rev 169329)
@@ -1,3 +1,14 @@
+2014-05-26 Tanay C <tana...@samsung.com>
+
+ [EFL] Fix build error in blob.cpp after r168435
+ https://bugs.webkit.org/show_bug.cgi?id=132678
+
+ Reviewed by Alexey Proskuryakov.
+
+ * fileapi/Blob.cpp:
+ (WebCore::Blob::size): Using isInBound to check range of local var
+ actualsize to resolve build error
+
2014-05-25 Ryuan Choi <ryuan.c...@samsung.com>
[EFL] Remove TileCairo and TiledBackingStoreBackendCairo
Modified: trunk/Source/WebCore/fileapi/Blob.cpp (169328 => 169329)
--- trunk/Source/WebCore/fileapi/Blob.cpp 2014-05-26 06:17:57 UTC (rev 169328)
+++ trunk/Source/WebCore/fileapi/Blob.cpp 2014-05-26 07:15:08 UTC (rev 169329)
@@ -124,7 +124,7 @@
// FIXME: _javascript_ cannot represent sizes as large as unsigned long long, we need to
// come up with an exception to throw if file size is not representable.
unsigned long long actualSize = ThreadableBlobRegistry::blobSize(m_internalURL);
- m_size = (actualSize <= std::numeric_limits<long long>::max()) ? static_cast<long long>(actualSize) : 0;
+ m_size = (WTF::isInBounds<long long>(actualSize)) ? static_cast<long long>(actualSize) : 0;
}
return static_cast<unsigned long long>(m_size);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes