diff options
Diffstat (limited to 'WebCore/fileapi/Blob.cpp')
-rw-r--r-- | WebCore/fileapi/Blob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/fileapi/Blob.cpp b/WebCore/fileapi/Blob.cpp index d5a5602..90df3c4 100644 --- a/WebCore/fileapi/Blob.cpp +++ b/WebCore/fileapi/Blob.cpp @@ -86,7 +86,7 @@ PassRefPtr<Blob> Blob::slice(long long start, long long length, const String& co if (start >= size) { start = 0; length = 0; - } else if (start + length > size) + } else if (start + length > size || length > std::numeric_limits<long long>::max() - start) length = size - start; OwnPtr<BlobData> blobData = BlobData::create(); |