This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
[WinCairo] REGRESSION(r245186) Crash in NetworkCache::IOChannel::read…
… in http/tests/IndexedDB some tests https://bugs.webkit.org/show_bug.cgi?id=197941 Reviewed by Don Olmstead. http/tests/IndexedDB some tests were crashing in NetworkCache::IOChannel::read in order to allocate a buffer with std::numeric_limits<size_t>::max() as the size. IOChannel::read should check the file size, and calculate the read size. * NetworkProcess/cache/NetworkCacheIOChannelCurl.cpp: (WebKit::NetworkCache::IOChannel::read): Limit the read buffer size by calling FileSystem::getFileSize. Canonical link: https://commits.webkit.org/212357@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 2 changed files with 28 additions and 2 deletions.