Changeset 259519 in webkit


Ignore:
Timestamp:
Apr 3, 2020 3:55:59 PM (4 years ago)
Author:
sihui_liu@apple.com
Message:

ASSERTION FAILED: objectStoreInfo in SQLiteIDBBackingStore::getRecord
https://bugs.webkit.org/show_bug.cgi?id=209976
<rdar://problem/55005363>

Reviewed by Geoffrey Garen.

Return error if objectStoreInfo is null in SQLiteIDBBackingStore::getRecord, because there is a possibility
SQLiteIDBBackingStore does not have requested objectStoreInfo.

  • Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:

(WebCore::IDBServer::SQLiteIDBBackingStore::getRecord):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r259518 r259519  
     12020-04-03  Sihui Liu  <sihui_liu@apple.com>
     2
     3        ASSERTION FAILED: objectStoreInfo in SQLiteIDBBackingStore::getRecord
     4        https://bugs.webkit.org/show_bug.cgi?id=209976
     5        <rdar://problem/55005363>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        Return error if objectStoreInfo is null in SQLiteIDBBackingStore::getRecord, because there is a possibility
     10        SQLiteIDBBackingStore does not have requested objectStoreInfo.
     11
     12        * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
     13        (WebCore::IDBServer::SQLiteIDBBackingStore::getRecord):
     14
    1152020-04-03  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp

    r257361 r259519  
    20612061        return IDBError { UnknownError, "Attempt to get a record from database without an in-progress transaction"_s };
    20622062
     2063    auto* objectStoreInfo = infoForObjectStore(objectStoreID);
     2064    if (!objectStoreInfo)
     2065        return IDBError { InvalidStateError, "Object store cannot be found in the backing store"_s };
     2066
    20632067    auto key = keyRange.lowerKey;
    20642068    if (key.isNull())
     
    21792183        return error;
    21802184
    2181     auto* objectStoreInfo = infoForObjectStore(objectStoreID);
    2182     ASSERT(objectStoreInfo);
    2183     resultValue = { keyData, { valueResultBuffer, WTFMove(blobURLs), WTFMove(blobFilePaths) }, objectStoreInfo->keyPath()};
     2185    resultValue = { keyData, { valueResultBuffer, WTFMove(blobURLs), WTFMove(blobFilePaths) }, objectStoreInfo->keyPath() };
    21842186    return IDBError { };
    21852187}
Note: See TracChangeset for help on using the changeset viewer.