Changeset 69716 in webkit
- Timestamp:
- Oct 13, 2010 5:21:40 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69710 r69716 1 2010-10-13 Chris Evans <cevans@google.com> 2 3 Reviewed by Jian Li. 4 5 Blob / BlobBuilder can be put into bad state with wild integers and strings, due to integer overflows 6 https://bugs.webkit.org/show_bug.cgi?id=47382 7 8 Add test for Blob.slice() integer overflow. 9 10 * fast/files/blob-slice-overflow.html: Added. 11 * fast/files/blob-slice-overflow-expected.txt: Added. 12 1 13 2010-10-13 James Simonsen <simonjam@chromium.org> 2 14 -
trunk/WebCore/ChangeLog
r69715 r69716 1 2010-10-13 Chris Evans <cevans@google.com> 2 3 Reviewed by Jian Li. 4 5 Blob / BlobBuilder can be put into bad state with wild integers and strings, due to integer overflows 6 https://bugs.webkit.org/show_bug.cgi?id=47382 7 8 Fix integer overflow errors in Blob.slice and BlobBuilder.append. 9 10 Test: fast/files/blob-slice-overflow.html 11 12 * fileapi/Blob.cpp: 13 (WebCore::Blob::slice): handle integer overflow properly. 14 * fileapi/BlobBuilder.cpp: 15 (WebCore::BlobBuilder::append): use correct type for vector length. 16 1 17 2010-10-13 Gavin Barraclough <barraclough@apple.com> 2 18 -
trunk/WebCore/fileapi/Blob.cpp
r67208 r69716 87 87 start = 0; 88 88 length = 0; 89 } else if (start + length > size )89 } else if (start + length > size || length > std::numeric_limits<long long>::max() - start) 90 90 length = size - start; 91 91 -
trunk/WebCore/fileapi/BlobBuilder.cpp
r69610 r69716 64 64 if (!utf8Text.isNull()) { 65 65 Vector<char>& buffer = *m_items[m_items.size() - 1].data->mutableData(); 66 unsignedoldSize = buffer.size();66 size_t oldSize = buffer.size(); 67 67 68 68 if (isEndingTypeNative)
Note: See TracChangeset
for help on using the changeset viewer.